⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 generalform.html.en.php

📁 FP2 CRM code+Mysql DB
💻 PHP
字号:
<?php echo $t->form->javascript;?>
   <table class="frm" border="0" style="padding-left:10px;" cellpadding="2" cellspacing="4" align="center" width="90%"> 
	<?php if ($this->options['strict'] || (isset($t->form) && method_exists($t->form,'outputHeader'))) echo $t->form->outputHeader();?>
	<?php echo $t->form->hidden;?>
		<?php if ($this->options['strict'] || (is_array($t->form->sections)  || is_object($t->form->sections))) foreach($t->form->sections as $sec) {?> 
			<tr> 
				<td colspan="2" class="newFont"> <br />
				<b><?php echo htmlspecialchars($sec->header);?></b>
				<div style="background:#C4C4C4; height:1px; font-size:1px"></div>
				</td> 
			</tr> 

		
			<?php if ($this->options['strict'] || (is_array($sec->elements)  || is_object($sec->elements))) foreach($sec->elements as $elem) {?>
					<?php if ($this->options['strict'] || (isset($elem) && method_exists($elem,'isType'))) if ($elem->isType("hidden")) { ?>
						<?php echo $elem->html;?>
					<?php } else {?> 
							<tr>					
								<td nowrap="nowrap" width="20%" class="fromLabel"><?php echo $elem->label;?></td>
								<td class="field" valign="top">
										<?php if ($elem->error)  {?><font color="red"><?php echo htmlspecialchars($elem->error);?></font><br /><?php }?> 
								<?php if ($this->options['strict'] || (isset($elem) && method_exists($elem,'isType'))) if ($elem->isType("group")) { ?> 
									<?php if ($this->options['strict'] || (is_array($elem->elements)  || is_object($elem->elements))) foreach($elem->elements as $gitem) {?>
										<?php echo $gitem->label;?>
										<?php echo $gitem->html;?>
										<?php if ($gitem->required)  {?><font color="red">*</font><?php }?>							
										<?php if ($elem->separator)  {?><?php echo $elem->separator[1];?><?php }?>
									<?php }?> 
								<?php } else {?> 
									<?php if ($elem->label_2)  {?><?php echo $elem->label_2;?><?php }?>
									<?php echo $elem->html;?> 
									<?php if ($elem->label_3)  {?><?php echo $elem->label_3;?><?php }?>
									<?php if ($elem->label_4)  {?><?php echo $elem->label_4;?><?php }?>
								<?php }?> 
									<?php if ($elem->required)  {?><font color="red">&nbsp;*</font><?php }?>
								</td>
							</tr>
				<?php }?>		
			<?php }?>		
		 <?php }?>
		  </form> 
	</table> 

⌨️ 快捷键说明

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