<?php if (!empty($field_list)) foreach ($field_list as $field) { ?> 
        <?php if (!empty($my_list)) foreach ($my_list as $vo) { ?>
        
        <tr>
          <td  align="left" valign="middle">{$vo['name']}:</td>
          <td>
          <?php if($vo['type']==1) { ?>
          <input name="{$vo['field']}" id="{$vo['field']}" type='text' class="regular-text" value="{$field[$vo['field']]}" />
          <?php } ?>
          <?php if($vo['type']==2) { ?>
          <textarea name="{$vo['field']}" id="{$vo['field']}" cols="0" class="regular-textarea" style="width:300px !important; height:80px">{$field[$vo['field']]}</textarea>
          <?php } ?>
          <?php if($vo['type']==3) { ?>
          </tr><tr><td colspan="2"><textarea name="{$vo['field']}" id="{$vo['field']}" cols="0" class="regular-textarea" style="width:100% !important; height:400px"><?php echo html_out($field[$vo['field']]); ?></textarea>
            <script>
			$(function() {
			var editor{$vo['field']};
			$.getScript('__PUBLICURL__/editor/kindeditor.js', function() {
			KindEditor.basePath = '__PUBLICURL__/editor/';
			editor{$vo['field']} = KindEditor.create('textarea[name="{$vo['field']}"]');
			  });
			});
			</script>
          
          <?php } ?>
          <?php if($vo['type']==4) { ?>
          <select name="{$vo['field']}"  id="{$vo['field']}" >
          <?php 
          $ary=split ("\n",$vo['default_val']);
          foreach ($ary as $val_list) {
          $strary=split (",",$val_list);
          ?>
          <option value="{$strary[0]}"  <?php if($strary[0]==$field[$vo["field"]]) { ?> selected="selected" <?php } ?> >{$strary[1]}</option>
          <?php }?> 
          
          </select>
          <?php } ?>
          
          <?php if($vo['type']==5) { ?>
          <input name="{$vo['field']}" id="{$vo['field']}" type="text" class="regular-text" value="{$field[$vo['field']]}" />
          <br />
		  <iframe scrolling="no"; frameborder="0" src="__APP__/upload/file.html?inputName={$vo['field']}" style="width:300px; height:35px;"></iframe>
          <?php } ?> 
          
          <?php if($vo['type']==6) { ?>
          <input name="{$vo['field']}" id="{$vo['field']}" type='text' class="regular-text" value="{$field[$vo['field']]}" />
          <?php } ?>
          
          <?php if($vo['type']==7) { ?>
          <input name="{$vo['field']}" id="{$vo['field']}" type='text' class="regular-text" value="{$field[$vo['field']]}" />
          <?php } ?>
          
          <?php if($vo['type']==8) { ?>
          <input name="{$vo['field']}" id="{$vo['field']}" type='text' class="regular-text" value="<?php echo date('Y-m-d H:i:s',$field[$vo['field']]); ?>" />
          <script>
		    $(function(){
			$('#{$vo['field']}').calendar({ format:'yyyy-MM-dd HH:mm:ss' });
			});
			</script>
          <?php } ?>
          </td>
        </tr>
        <?php }}?>
        
        <?php if (empty($field_list) && !empty($my_model['id'])) { foreach ($my_list as $vo) { ?> 
        
        <tr>
          <td  align="left" valign="middle">{$vo['name']}:</td>
          <td>
          <?php if($vo['type']==1) { ?>
          <input name="{$vo['field']}" id="{$vo['field']}" type='text' class="regular-text" value="{$vo['default_val']}" />
          <?php } ?>
          <?php if($vo['type']==2) { ?>
          <textarea name="{$vo['field']}" id="{$vo['field']}" cols="0" class="regular-textarea" style="width:300px !important; height:80px">{$vo['default_val']}</textarea>
          <?php } ?>
          <?php if($vo['type']==3) { ?>
          </tr><tr><td colspan="2"><textarea name="{$vo['field']}" id="{$vo['field']}" cols="0" class="regular-textarea" style="width:100% !important; height:400px"><?php echo html_out($vo['default_val']) ?></textarea>
          <script>
			$(function() {
			var editor{$vo['field']};
			$.getScript('__PUBLICURL__/editor/kindeditor.js', function() {
			KindEditor.basePath = '__PUBLICURL__/editor/';
			editor{$vo['field']} = KindEditor.create('textarea[name="{$vo['field']}"]');
			  });
			});
			</script>
          <?php } ?>
          <?php if($vo['type']==4) { ?>
          <select name="{$vo['field']}"  id="{$vo['field']}" >
          <?php 
          $ary=split ("\n",$vo['default_val']);
          foreach ($ary as $val_list) {
          $strary=split (",",$val_list);
          ?>
          <option value="{$strary[0]}">{$strary[1]}</option>
          <?php }?>        
          
          </select>
          <?php } ?>
          
          <?php if($vo['type']==5) { ?>
          <input name="{$vo['field']}" id="{$vo['field']}" type="text" class="regular-text" value="{$vo['default_val']}" />
          <br />
		  <iframe scrolling="no"; frameborder="0" src="__APP__/upload/file.html?inputName={$vo['field']}" style="width:300px; height:35px;"></iframe>
          <?php } ?>
         <?php if($vo['type']==6) { ?>
          <input name="{$vo['field']}" id="{$vo['field']}" type='text' class="regular-text" value="{$vo['default_val']}" />
          <?php } ?>
          
          <?php if($vo['type']==7) { ?>
          <input name="{$vo['field']}" id="{$vo['field']}" type='text' class="regular-text" value="{$vo['default_val']}" />
          <?php } ?>
          
          <?php if($vo['type']==8) { ?>
          <input name="{$vo['field']}" id="{$vo['field']}" type='text' class="regular-text" value="<?php echo @date('Y-m-d H:i:s',$vo['default_val']); ?>" />
          
          <script>
		    $(function(){
			$('#{$vo['field']}').calendar({ format:'yyyy-MM-dd HH:mm:ss' });
			});
			</script>
          <?php } ?>
          </td>
        </tr>
        <?php }} ?>
        
        <input type="hidden" name="my_id" id="my_id" value="{$my_model['id']}">