class.formhandler.editform.inc.php

来自「asterisk用 的voip记费软件」· PHP 代码 · 共 670 行 · 第 1/3 页

PHP
670
字号
                                      <font face="Verdana" size="2">                                      <b><?php echo $split_select_list[$j][$table_split[7]]?></b> : <?php echo $split_select_list[$j][0]?>                                      </font> </TD>                                    <TD align="center" vAlign="top2" class="tableBodyRight">                                      <input onClick="sendto('del-content','<?php echo $i?>','<?php echo $table_split[1]?>','<?php echo $split_select_list[$j][1]?>');" alt="Remove this <?php echo $this->FG_TABLE_EDITION[$i][0]?>" border=0 height=11 hspace=2 id=submit33 name=submit33 src="<?php echo Images_Path_Main;?>/icon-del.gif" type=image width=33 value="add-split">                                    </TD>                                  </TR>                                  <?php	  }//end_for	}else{			?>                                  <TR bgcolor="<?php echo $this->FG_TABLE_ALTERNATE_ROW_COLOR[$j%2]?>"  onMouseOver="bgColor='#C4FFD7'" onMouseOut="bgColor='<?php echo $this->FG_TABLE_ALTERNATE_ROW_COLOR[$j%2]?>'">                                    <TD colspan="2" align="<?php echo $this->FG_TABLE_COL[$i][3]?>" vAlign="top" class="tableBody">                                      <div align="center" class="liens">No <?php echo $this->FG_TABLE_EDITION[$i][0]?></div></TD>                                  </TR>                                  <?php	}	?>                                  <TR>                                     <TD class="tableDivider" colSpan=<?php echo $this->FG_TOTAL_TABLE_COL?>><IMG height=1 src="<?php echo Images_Path_Main;?>/clear.gif" width=1></TD>                                  </TR>                              </TABLE></td>                          </tr>                          <TR class="bgcolor_016">                             <TD class="editform_table3_td2">                             	<TABLE border=0 cellPadding=0 cellSpacing=0 width="100%">                                	<TR><TD height="4" align="right"></TD></TR>                              	</TABLE>							</TD>                          </TR>                        </table><br></TD>                    </TR>                    <TR>					  <!-- *******************   Select to ADD new instances  ****************************** -->					                        <TD class="form_head">&nbsp;</TD>                      <TD align="center" valign="top" background="<?php echo Images_Path;?>/background_cells.gif" class="text"><br>                        <TABLE width="300" height=50 border=0 align="center" cellPadding=0 cellSpacing=0>                            <TR>                             	<TD bgColor=#7f99cc colSpan=3 height=16 style="PADDING-LEFT: 5px; PADDING-RIGHT: 5px" class="form_head">									<TABLE border=0 cellPadding=0 cellSpacing=0 width="100%">										<TR> 											<TD class="form_head"><?php echo gettext("Add a new");?> <?php echo $this->FG_TABLE_EDITION[$i][0]?></TD>										</TR>									</TABLE>								</TD>                            </TR>							                            <TR> 								<TD class="form_head"> <IMG height=1 src="<?php echo Images_Path_Main;?>/clear.gif" width=1>								</TD>								<TD class="editform_table4_td1">                                 								<TABLE width="97%" border=0 align="center" cellPadding=0 cellSpacing=0>									<TR> 										<TD width="122" class="tableBody"><?php echo $this->FG_TABLE_EDITION[$i][0]?></TD>										<TD width="516"><div align="center"> 															<INPUT TYPE="TEXT" name=<?php echo $table_split[1]?> class="form_input_text"  size="20" maxlength="20">										</TD>                                    </TR>                                                                        <TR> 										<TD colspan="2" align="center">									  												<input onClick="sendto('add-content','<?php echo $i?>');" alt="add new a <?php echo $this->FG_TABLE_EDITION[$i][0]?>" border=0 height=20 hspace=2 id=submit32 name=submit3 src="<?php echo Images_Path_Main;?>/btn_Add_94x20.gif" type=image width=94 value="add-split">										</TD>                                    </TR>                                    <TR>                                       <TD colSpan=2 height=4></TD>                                    </TR>                                    <TR>                                       <TD colSpan=2> <div align="right"></div></TD>                                    </TR>                                </TABLE>								</TD>								<TD class="form_head"><IMG height=1 src="<?php echo Images_Path_Main;?>/clear.gif" width=1>								</TD>                            </TR>                            <TR>                               <TD colSpan=3 class="form_head"><IMG height=1 src="<?php echo Images_Path_Main;?>/clear.gif" width=1></TD>                            </TR>                        </TABLE>                        <br></TD>                    </TR>										<?php  }elseif (strtoupper ($this->FG_TABLE_EDITION[$i][3])==strtoupper ("CHECKBOX")){														$table_split = split(":",$this->FG_TABLE_EDITION[$i][14]);					?>					<TR> 					 <!-- ******************** PARTIE EXTERN : CHECKBOX ***************** -->                      					 <td class="editform_table5_td1">					 	<table width="100%" border="0" cellpadding="2" cellspacing="0" class="form_text">                   		<tr>                        	<td width="122"><?php echo $this->FG_TABLE_EDITION[$i][0]?></td>                        </tr>						</table>					</td>					<td valign="top" class="editform_table5_td2">					    	<?php 	$SPLIT_CLAUSE = str_replace("%id", "$id", $table_split[4]);		$instance_sub_table = new Table($table_split[2], $table_split[3]);	$split_select_list = $instance_sub_table -> Get_list ($this->DBHandle, $SPLIT_CLAUSE, null, null, null, null, null, null);				if (!is_array($split_select_list)){			$num=0;	}else{			$num = count($split_select_list);	}		 ////////////////////////////////////////////////////////////////////////////////////////////////////////	 $table_split[12] = str_replace("%id", "$id", $table_split[12]);	 $split_select_list_tariff = $instance_sub_table -> Get_list ($this->DBHandle, $table_split[12], null, null, null, null, null, null);	 if (count($split_select_list_tariff)>0)	 {			 $select_number=0;			  ?>							  <TABLE class="editform_table6" cellSpacing=0>				<TR>                 	<TD colSpan=3 class="editform_table6_td1">						<table border="0" cellpadding="0" cellspacing="0" width="100%">							<tr>								<td class="editform_table7_td1"><font > <?php echo $this->FG_TABLE_COMMENT[$i]?></font></td>							</tr>                        </table>					</TD>				</TR>                <TR>                 	<TD class="form_head"> <IMG height=1 src="<?php echo Images_Path_Main;?>/clear.gif" width=1>                    </TD>                    <TD class="editform_table4_td1"> 						<TABLE width="97%" border=0 align="center" cellPadding=0 cellSpacing=0>                         <?php  	foreach ($split_select_list_tariff as $select_recordset){ 				 $select_number++;				 				 if ($table_split[6]!="" && !is_null($table_split[6])){				 						if (is_numeric($table_split[7])){							$instance_sub_sub_table = new Table($table_split[8], $table_split[9]);							$SUB_TABLE_SPLIT_CLAUSE = str_replace("%1", $select_recordset[$table_split[7]], $table_split[11] );							$sub_table_split_select_list_tariff = $instance_sub_sub_table -> Get_list ($this->DBHandle, $SUB_TABLE_SPLIT_CLAUSE, null, null, null, null, null, null);							$select_recordset[$table_split[7]] = $sub_table_split_select_list_tariff[0][0];						}													 						 $value_display = $table_split[6];						 $nb_recor_k = count($select_recordset);						 for ($k=1;$k<=$nb_recor_k;$k++){							$value_display  = str_replace("%$k", $select_recordset[$k-1], $value_display );						 }				 }else{													 						$value_display  = $select_recordset[0];				 }				 				 				 $checked_tariff=false;				 if($num>0)				 {					for($j=0;$j<$num;$j++)					{						if ($select_recordset[1]==$split_select_list[$j][1]) $checked_tariff=true;					}				 }?>			<TR>				<TD class="tableBody"><input type="checkbox" name="<?php echo $table_split[0]?>[]" value="<?php echo $select_recordset[1]?>" <?php if ($checked_tariff) echo"checked";?>></TD>				<TD class="text_azul">&nbsp; <?php echo $value_display?></TD>			</TR><?php }// END_FOREACH?>                         <TR><TD colSpan=2 height=4>				<span class="liens">					<?php				if (!$this-> FG_fit_expression[$i]  &&  isset($this-> FG_fit_expression[$i]) ){					echo "<br>".$this->FG_TABLE_EDITION[$i][6];				}		  ?>					</span>				</TD></TR>                                </TABLE></TD>                              <TD class="form_head"><IMG height=1 src="<?php echo Images_Path_Main;?>/clear.gif" width=1>                              </TD>                            </TR>                            <TR>                              <TD colSpan=3 class="form_head"><IMG height=1 src="<?php echo Images_Path_Main;?>/clear.gif" width=1></TD>                            </TR>                        </TABLE>			  <?php	  		}else{				echo gettext("No data found !!!");	  }?>					 </TD>                    </TR>                    <?php   	  }// end if if (strtoupper ($this->FG_TABLE_EDITION[$i][3])==strtoupper ("SELECT"))							}// end if pos			}//END_FOR ?>                </FORM>              </TABLE>	  <TABLE cellspacing="0" class="editform_table8">		<tr>		 <td colspan="2" style="border-bottom: medium dotted rgb(102, 119, 102);">&nbsp; </td>		</tr>		<tr>			<td width="50%" class="text_azul"><span class="tableBodyRight"><?php echo $this->FG_BUTTON_EDITION_BOTTOM_TEXT?></span></td>			<td width="50%" align="right" class="text">							<a href="#" onClick="sendto('edit');" class="cssbutton_big"><IMG src="<?php echo Images_Path_Main;?>/icon_arrow_orange.gif">				<?php echo gettext("CONFIRM DATA"); ?> </a>								<!-- 				<input onClick="sendto('edit');" border=0 hspace=0 id=submit3 name=submit32 src="<?php echo $this->FG_BUTTON_EDITION_SRC?>" 				type=image value="add-split">						-->			</td>		</tr>	  </TABLE>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?