Ver Mensaje Individual
  #4 (permalink)  
Antiguo 19/09/2008, 15:42
bleckfala
 
Fecha de Ingreso: enero-2008
Mensajes: 163
Antigüedad: 16 años, 10 meses
Puntos: 2
Respuesta: se duplican al insertar

ps si no lo puse no es por desconfianza es porque es un putero jajajaja pero ps voi a poner el codigo donde se envia
Código PHP:
<td width="220" onMouseOver="this.bgColor='#7698B0'" onClick="evento(<?php echo $i;?>,false,1)"
              onMouseOut="this.bgColor='white'">&nbsp;          
              <div align="center" id="eventos<?php echo $i."1";?>" style="display:none; position:absolute"> 
                      <?php                       
                $_SESSION
['action']='agregar';
                
$salon1="Salon 1";
                
$val1="s1";            
                
$horai1=$x;
                
$horaf1=$horai1+1;
                if(
$horai1<7){
                    
$horai1=$horai1+12;
                }
                if(
$horaf1<8){
                    
$horaf1=$horaf1+12;
                }
                

                
?><form action="" method="post" enctype="multipart/form-data" name="form1">
                    <table width="100" border="0" bgcolor="#DBE7FF" class="letra">
                          <tr>
                        <th scope="col" align="right">Asunto:</th>
                        <th scope="col" align="left"><input name="asunto" type="text"></th>
                          </tr>
                        <tr>
                        <th scope="col" align="right">Ubicacion:</th>
                        <th scope="col" align="left"><select name="ubicacion">
            <option value="<?php echo $val1;?>"><?php echo "$salon1";?></option>
          </select></th>
                          </tr>
                        <tr>
                        <th scope="col">Comienzo:</th>
                        <th scope="col"><input id="birthday" name="fecha" type="text" class="DatePicker" tabindex="1"  value="<?php echo $fecha?>" /></th>
                          <th scope="col"><select name="inicio" id="hora">
           <?php
                    
            
for($i1=$horai1;$i1<19;$i1++){          
                          
                        
                     
$x1=$i1%12;
                    if(
$x1==0){
                        
$x1=12;
                    }
                    if(
$i1<12){
                        
$hora1=$x1.":00 a.m.";
                    }else{
                        
$hora1=$x1.":00 p.m.";
                    }
                    
               
                
            
            
?>
            <option value="<?php echo $hora1;?>"><?php echo $hora1?></option>
            <?php }?>
          </select></th>
                        </tr>
                        <tr>
                        <th scope="col">Finalización:</th>
                        <th scope="col"><input id="birthday" name="fecha2" type="text" class="DatePicker" tabindex="1"  value="<?php echo $fecha?>" /></th>
                          <th scope="col"><select name="fin" id="hora">
           <?php
                    
            
for($i1=$horaf1;$i1<20;$i1++){          
                          
                        
                     
$x1=$i1%12;
                    if(
$x1==0){
                        
$x1=12;
                    }
                    if(
$i1<12){
                        
$hora1=$x1.":00 a.m.";
                    }else{
                        
$hora1=$x1.":00 p.m.";
                    }
                    
               
                
            
            
?>
            <option value="<?php echo $hora1;?>"><?php echo $hora1?></option>
            <?php }?>
          </select></th>
                    </tr>
                        <th colspan="3" scope="col" align="center">
                    <input type="submit" name="Submit" value="Enviar" onClick="this.form.action='fecha.php'; this.form.submit()">
                    <input type="submit" name="Submit" value="Cancelar" onClick="cancela(<?php echo $i;?>,false,1)" >
                        </th>
                        </tr>
                </table>
                </form>
                
                </div></td>
              <?php 
                       
}          
                
?>