当前位置: 首页>>代码示例>>PHP>>正文


PHP creat_form函数代码示例

本文整理汇总了PHP中creat_form函数的典型用法代码示例。如果您正苦于以下问题:PHP creat_form函数的具体用法?PHP creat_form怎么用?PHP creat_form使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了creat_form函数的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: foreach

</td>
  </tr>
  <?php 
    }
    ?>
  <?php 
    if (isset($html[$action]) && is_array($html[$action]) && $action) {
        foreach ($html[$action] as $k => $v) {
            ?>
      <tr>
    <th><?php 
            echo $v['name'];
            ?>
:</th>
    <td class="y-bg"><?php 
            echo creat_form($k, $v, $form_data[$k]);
            ?>
</td>
  </tr>
  <?php 
        }
    }
    ?>
  <?php 
} else {
    ?>
    <tr>
    <th valign="top"><?php 
    echo L('custom_sql');
    ?>
:</th>
开发者ID:pondyond,项目名称:phpcmsv9,代码行数:31,代码来源:data_edit.tpl.php

示例2: foreach

}
?>
</td>
  </tr>
  
  <?php 
if (isset($html[$_GET['action']]) && is_array($html[$_GET['action']])) {
    foreach ($html[$_GET['action']] as $k => $v) {
        ?>
  	  <tr>
    <th width="80"><?php 
        echo $v['name'];
        ?>
:</th>
    <td class="y-bg"><?php 
        echo creat_form($k, $v, $_GET[$k], $op);
        ?>
</td>
  </tr>
  <?php 
        if (isset($v['ajax']['name']) && !empty($v['ajax']['name'])) {
            ?>
  	  <tr>
  	  	<th width="80"><?php 
            echo $v['ajax']['name'];
            ?>
:<?php 
            if (isset($_GET[$v['ajax']['id']]) && !empty($_GET[$v['ajax']['id']])) {
                echo '<script type="text/javascript">$.get(\'?m=template&c=file&a=public_ajax_get\', { html: \'' . $_GET[$k] . '\', id:\'' . $v['ajax']['id'] . '\', value:\'' . $_GET[$v['ajax']['id']] . '\', action: \'' . $v['ajax']['action'] . '\', op: \'' . $op . '\', style: \'default\'}, function(data) {$(\'#' . $k . '_td\').html(data)});</script>';
            }
            ?>
开发者ID:klj123wan,项目名称:czsz,代码行数:31,代码来源:pc_tag_modules.tpl.php

示例3: foreach

</td>
  </tr>
  <?php 
    }
    ?>
  <?php 
    if (isset($html[$action]) && is_array($html[$action]) && $action) {
        foreach ($html[$action] as $k => $v) {
            ?>
      <tr>
    <th><?php 
            echo $v['name'];
            ?>
:</th>
    <td class="y-bg"><?php 
            echo creat_form($k, $v);
            ?>
</td>
  </tr>
  <?php 
        }
    }
    ?>
  <?php 
} else {
    ?>
    <tr>
    <th valign="top"><?php 
    echo L('custom_sql');
    ?>
:</th>
开发者ID:boylzj,项目名称:omguitar,代码行数:31,代码来源:data_add.tpl.php

示例4: foreach

</td>
	  </tr>
	  <?php 
    }
    ?>
	  <?php 
    if (isset($html[$action]) && is_array($html[$action]) && $action) {
        foreach ($html[$action] as $k => $v) {
            ?>
		  <tr>
		<th><?php 
            echo $v['name'];
            ?>
£º</th>
		<td class="y-bg"><?php 
            echo creat_form($k, $v, $form_data[$k], $module);
            ?>
</td>
	</tr>
	<?php 
            if (isset($v['ajax']['name']) && !empty($v['ajax']['name'])) {
                ?>
  	  <tr>
  	  	<th width="80"><?php 
                echo $v['ajax']['name'];
                ?>
£º<?php 
                if (isset($_GET[$v['ajax']['id']]) && !empty($_GET[$v['ajax']['id']])) {
                    echo '<script type="text/javascript">$.get(\'?m=template&c=file&a=public_ajax_get\', { html: \'' . $_GET[$k] . '\', id:\'' . $v['ajax']['id'] . '\', value:\'' . $_GET[$v['ajax']['id']] . '\', action: \'' . $v['ajax']['action'] . '\', op: \'' . $module . '\', style: \'default\'}, function(data) {$(\'#' . $k . '_td\').html(data)});</script>';
                }
                ?>
开发者ID:ahmatjan,项目名称:huluphp,代码行数:31,代码来源:tag_edit.tpl.php

示例5: if

  </tr>
  <?php if ($type==0) :?>
    <tr>
    <th><?php echo L('select_model')?>£º</th>
    <td class="y-bg"><?php echo form::select($modules, $module, 'name="module" id="module" onchange="location.href=\''.get_url().'&module=\'+this.value"')?><script type="text/javascript">$(function(){$("#module").formValidator({onshow:"<?php echo L('please_select_model')?>",onfocus:"<?php echo L('please_select_model')?>"}).inputValidator({min:1, onerror:'<?php echo L('please_select_model')?>'});});</script></td>
  </tr>
  <?php if ($module):?>
    <tr>
    <th><?php echo L('selectingoperation')?>£º</th>
    <td class="y-bg"><?php echo form::radio($html['action'], $action, 'name="action" onclick="location.href=\''.get_url().'&action=\'+this.value"')?></td>
  </tr>
  <?php endif;?>
  <?php if(isset($html[$action]) && is_array($html[$action]) && $action)foreach($html[$action] as $k=>$v):?>
      <tr>
    <th><?php echo $v['name']?>£º</th>
    <td class="y-bg"><?php echo creat_form($k, $v, $form_data[$k])?></td>
  </tr>
  <?php endforeach;?>
  <?php else :?>
    <tr>
    <th valign="top"><?php echo L('custom_sql')?>£º</th>
    <td class="y-bg"><textarea name="data" id="data" style="width:386px;height:178px;"><?php if($edit_data['type']==1)echo $edit_data['data']?></textarea><script type="text/javascript">$(function(){$("#data").formValidator({onshow:"<?php echo L('please_enter_a_sql')?>",onfocus:"<?php echo L('please_enter_a_sql')?>"}).inputValidator({min:1, onerror:'<?php echo L('please_enter_a_sql')?>'});});</script></td>
  </tr>
  <?php endif;?>
</table>
</fieldset>
<div class="bk15"></div>
<fieldset>
	<legend><?php echo L('vlan')?></legend>
	<table width="100%"  class="table_form">
	<tr>
开发者ID:hxzyzz,项目名称:ddc,代码行数:31,代码来源:data_edit.tpl.php

示例6: foreach

</td>
	  </tr>
	  <?php 
    }
    ?>
	  <?php 
    if (isset($html[$action]) && is_array($html[$action]) && $action) {
        foreach ($html[$action] as $k => $v) {
            ?>
		  <tr>
		<th><?php 
            echo $v['name'];
            ?>
:</th>
		<td class="y-bg"><?php 
            echo creat_form($k, $v, '', $module);
            ?>
</td>
	</tr>
	<?php 
            if (isset($v['ajax']['name']) && !empty($v['ajax']['name'])) {
                ?>
  	  <tr>
  	  	<th width="80"><?php 
                echo $v['ajax']['name'];
                ?>
:<?php 
                if (isset($_GET[$v['ajax']['id']]) && !empty($_GET[$v['ajax']['id']])) {
                    echo '<script type="text/javascript">$.get(\'?m=template&c=file&a=public_ajax_get\', { html: \'' . $_GET[$k] . '\', id:\'' . $v['ajax']['id'] . '\', value:\'' . $_GET[$v['ajax']['id']] . '\', action: \'' . $v['ajax']['action'] . '\', op: \'' . $module . '\', style: \'default\'}, function(data) {$(\'#' . $k . '_td\').html(data)});</script>';
                }
                ?>
开发者ID:boylzj,项目名称:omguitar,代码行数:31,代码来源:tag_add.tpl.php

示例7: if

  </tr>
  <?php if ($type==0) :?>
    <tr>
    <th><?php echo L('select_model')?>:</th>
    <td class="y-bg"><?php echo form::select($modules, $module, 'name="module" id="module" onchange="location.href=\''.get_url().'&module=\'+this.value"')?><script type="text/javascript">$(function(){$("#module").formValidator({onshow:"<?php echo L('please_select_model')?>",onfocus:"<?php echo L('please_select_model')?>"}).inputValidator({min:1, onerror:'<?php echo L('please_select_model')?>'});});</script></td>
  </tr>
  <?php if ($module):?>
    <tr>
    <th><?php echo L('selectingoperation')?>:</th>
    <td class="y-bg"><?php echo form::radio($html['action'], $action, 'name="action" onclick="location.href=\''.get_url().'&action=\'+this.value"')?></td>
  </tr>
  <?php endif;?>
  <?php if(isset($html[$action]) && is_array($html[$action]) && $action)foreach($html[$action] as $k=>$v):?>
      <tr>
    <th><?php echo $v['name']?>:</th>
    <td class="y-bg"><?php echo creat_form($k, $v)?></td>
  </tr>
  <?php endforeach;?>
  <?php else :?>
    <tr>
    <th valign="top"><?php echo L('custom_sql')?>:</th>
    <td class="y-bg"><textarea name="data" id="data" style="width:386px;height:178px;"></textarea><script type="text/javascript">$(function(){$("#data").formValidator({onshow:"<?php echo L('please_enter_a_sql')?>",onfocus:"<?php echo L('please_enter_a_sql')?>"}).inputValidator({min:1, onerror:'<?php echo L('please_enter_a_sql')?>'});});</script></td>
  </tr>
  <?php endif;?>
</table>
</fieldset>
<div class="bk15"></div>
<fieldset>
	<legend><?php echo L('vlan')?></legend>
	<table width="100%"  class="table_form">
	<tr>
开发者ID:panhongsheng,项目名称:zl_cms,代码行数:31,代码来源:data_add.tpl.php

示例8: L

    <tr>
    <th width="80"><?php echo L('operation')?>:</th>
    <td class="y-bg"> <?php if(isset($html['action']) && is_array($html['action'])) {
	    foreach($html['action'] as $key=>$value) {
				$checked = $_GET['action']==$key ? 'checked' : '';
				echo '<label><input type="radio" name="action" onclick="location.href=\'?'.creat_url($key).'\'" '.$checked.' value="'.$key.'"> '.$value."</label>";
			}
    }?></td>
  </tr>
  
  <?php 
  if(isset($html[$_GET['action']]) && is_array($html[$_GET['action']])):
  foreach($html[$_GET['action']] as $k=>$v): ?>
  	  <tr>
    <th width="80"><?php echo $v['name']?>:</th>
    <td class="y-bg"><?php echo creat_form($k,$v,$_GET[$k], $op)?></td>
  </tr>
  <?php if(isset($v['ajax']['name'])  && !empty($v['ajax']['name'])) {?>
  	  <tr>
  	  	<th width="80"><?php echo $v['ajax']['name']?>:<?php if(isset($_GET[$v['ajax']['id']]) && !empty($_GET[$v['ajax']['id']])) echo '<script type="text/javascript">$.get(\'?m=template&c=file&a=public_ajax_get\', { html: \''.$_GET[$k].'\', id:\''.$v['ajax']['id'].'\', value:\''.$_GET[$v['ajax']['id']].'\', action: \''.$v['ajax']['action'].'\', op: \''.$op.'\', style: \'default\'}, function(data) {$(\'#'.$k.'_td\').html(data)});</script>'?></th>
  	  	<td class="y-bg"><input type="text" size="20" value="<?php echo $_GET[$v['ajax']['id']]?>" id="<?php echo $v['ajax']['id']?>" name="<?php echo $v['ajax']['id']?>" class="input-text"><span id="<?php echo $k?>_td"></span></td>
  	 </tr>
  <?php }?>
  <?php endforeach;endif;?>
  
</table>
</fieldset>
<div class="bk15"></div>
<fieldset>
	<legend><?php echo L('vlan')?></legend>
		<table width="100%"  class="table_form">
开发者ID:panhongsheng,项目名称:zl_cms,代码行数:31,代码来源:pc_tag_modules.tpl.php


注:本文中的creat_form函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。