Example #1
0
			<th><?php 
echo L('special_banner');
?>
:</th>
			<td><?php 
echo form::images('special[banner]', 'banner', '', 'special', '', 40);
?>
</td>
		</tr>
		<tr>
			<th><?php 
echo L('sepcial_thumb');
?>
:</th>
			<td><?php 
echo form::images('special[thumb]', 'thumb', '', 'special', '', 40, '', '', '', array(350, 350));
?>
</td>
		</tr>
		<tr>
			<th><?php 
echo L('special_intro');
?>
:</th>
			<td><textarea name="special[description]" id="description" cols="50" rows="6"></textarea></td>
		</tr>
		<tr>
	    	<th align="right"  valign="top"><?php 
echo L('ishtml');
?>
:</th>
<tr>
<td><?php echo L('listorder')?></td> 
<td><input type="text" name="info[listorder]" class="input-text" size="5" value="<?php echo $listorder?>"></input></td>
</tr> 
<tr>
<td><?php echo L('maxnum')?></td> 
<td><input type="text" name="info[maxnum]" id="maxnum" class="input-text" size="5" value="<?php echo $maxnum?>"></input><?php echo L('posid_num')?></td>
</tr> 
<tr>
<td><?php echo L('extention_name')?></td> 
<td><input type="text" name="info[extention]" id="extention" class="input-text" size="30" value="<?php echo $extention?>"></input></td>
</tr> 
<tr>
<td><?php echo L('上传对应图')?></td> 
<td><?php echo form::images('info[thumb]', 'thumb', $info['thumb'], 'thumb','','30')?></td>
</tr> 
</table>

    <div class="bk15"></div>
    <input name="dosubmit" type="submit" value="<?php echo L('submit')?>" class="dialog" id="dosubmit">
</form>
<div class="explain-col">
<?php echo L('position_tips')?><br/>
<?php echo L('extention_name_tips')?>
</div>
</div>
</div>
</body>
</html>
<script type="text/javascript">
<td  width="100"><?php 
echo L('posid_title');
?>
</td> 
<td><input type="text" name="info[title]" class="input-text" value="<?php 
echo $title;
?>
" id="title" size="40"></input></td>
</tr>
<tr>
<td><?php 
echo L('posid_thumb');
?>
</td> 
<td><?php 
echo form::images('info[thumb]', 'thumb', $thumb, 'content');
?>
 </td>
</tr>
<tr>
<td><?php 
echo L('posid_inputtime');
?>
</td> 
<td><?php 
echo form::date('info[inputtime]', date('Y-m-d h:i:s', $inputtime), 1);
?>
</td>
</tr>

<tr>
Example #4
0
	<tr>
		<th width="100"><?php 
echo L('url');
?>
:</th>
		<td><input type="text" name="link[url]" id="link_url"
			size="30" class="input-text"></td>
	</tr>
	
	<tr id="logolink">
		<th width="100"><?php 
echo L('logo');
?>
:</th>
		<td><?php 
echo form::images('link[logo]', 'logo', '', 'link');
?>
</td>
	</tr>
	
	<tr>
		<th width="100"><?php 
echo L('username');
?>
:</th>
		<td><input type="text" name="link[username]" id="link_username"
			size="30" class="input-text"></td>
	</tr>

 
	<tr>
    echo $cat['catdir'];
    ?>
' style='width:250px'></td>
	<?php 
}
?>
	 </tr>
	 <tr>
	 <?php 
foreach ($batch_array as $catid => $cat) {
    ?>
		<td><b><?php 
    echo L('catgory_img');
    ?>
£º</b><br><?php 
    echo form::images('info[' . $catid . '][image]', 'image' . $catid, $cat['image'], 'content', '', 23);
    ?>
</td>
	<?php 
}
?>
	 </tr>
	 <tr>
	 <?php 
foreach ($batch_array as $catid => $cat) {
    ?>
		<td><b><?php 
    echo L('description');
    ?>
£º</b><br><textarea name="info[<?php 
    echo $catid;
Example #6
0
		<li id="tab_setting_2" onclick="SwapTab('setting','on','',6,2);"><?php echo L('extend_setting')?></li>
	</ul>
<div id="div_setting_1" class="contentList pad-10">
	<table class="table_form" width="100%" cellspacing="0">
		<tbody>
			<tr>
				<th width="200"><?php echo L('special_title')?>:</th>
				<td><input name="special[title]" id="title" class="input-text" value="<?php echo new_html_special_chars($info['title']);?>" type="text" size="40"></td>
			</tr>
			<tr>
				<th><?php echo L('special_banner')?>:</th>
				<td><?php echo form::images('special[banner]', 'banner', $info['banner'], 'special', '', 40)?></td>
			</tr>
			<tr>
				<th><?php echo L('sepcial_thumb')?>:</th>
				<td><?php echo form::images('special[thumb]', 'thumb', $info['thumb'], 'special', '', 40, '', '', '', array(350, 350))?></td>
			</tr>
			<tr>
				<th><?php echo L('special_intro')?>:</th>
				<td><textarea name="special[description]" id="description" cols="50" rows="6"><?php echo $info['description'];?></textarea></td>
			</tr>
			<tr>
		    	<th align="right" valign="top"><?php echo L('ishtml')?>:</th>
		        <td valign="top"><?php echo form::radio(array('1'=>L('yes'), '0'=>L('no')), $info['ishtml'], 'name="special[ishtml]"');?>
		        </td>
		    </tr>
		    <tr id="file_div" style="display:<?php if($info['ishtml']) {?> <?php } else {?>none<?php }?>;">
		    	<th align="right" valign="top"><?php echo L('special_filename')?>:</th>
		        <td valign="top"><input type="text" name="special[filename]" id="filename" class="input-text"<?php if($info['ishtml']) {?> readonly<?php }?> value="<?php echo $info['filename']?>" size="20">
		        </td>
		    </tr>
Example #7
0
        <th><?php 
echo L('catdir');
?>
:</th>
        <td><input type="text" name="info[catdir]" id="catdir" class="input-text" value="<?php 
echo $catdir;
?>
"></td>
      </tr>
	<tr>
        <th><?php 
echo L('catgory_img');
?>
:</th>
        <td><?php 
echo form::images('info[image]', 'image', $image, 'ask');
?>
</td>
      </tr>
	<tr>
        <th><?php 
echo L('description');
?>
:</th>
        <td>
		<textarea name="info[description]" maxlength="255" style="width:300px;height:60px;"><?php 
echo $description;
?>
</textarea>
		</td>
      </tr>
Example #8
0
<td><?php 
echo L('extention_name');
?>
</td> 
<td><input type="text" name="info[extention]" id="extention" class="input-text" size="30" value="<?php 
echo $extention;
?>
"></input></td>
</tr> 
<tr>
<td><?php 
echo L('上传对应图');
?>
</td> 
<td><?php 
echo form::images('info[thumb]', 'thumb', $info['thumb'], 'thumb', '', '30');
?>
</td>
</tr> 
</table>

    <div class="bk15"></div>
    <input name="dosubmit" type="submit" value="<?php 
echo L('submit');
?>
" class="dialog" id="dosubmit">
</form>
<div class="explain-col">
<?php 
echo L('position_tips');
?>
Example #9
0
	
	<tr>
		<th width="100"><?php echo L('link_name')?>Б║</th>
		<td><input type="text" name="link[name]" id="link_name"
			size="30" class="input-text"></td>
	</tr>
	
	<tr>
		<th width="100"><?php echo L('url')?>Б║</th>
		<td><input type="text" name="link[url]" id="link_url"
			size="30" class="input-text"></td>
	</tr>
	
	<tr id="logolink">
		<th width="100"><?php echo L('logo')?>Б║</th>
		<td><?php echo form::images('link[logo]', 'logo', '', 'link')?></td>
	</tr>
	
	<tr>
		<th width="100"><?php echo L('username')?>Б║</th>
		<td><input type="text" name="link[username]" id="link_username"
			size="30" class="input-text"></td>
	</tr>

 
	<tr>
		<th><?php echo L('web_description')?>Б║</th>
		<td><textarea name="link[introduce]" id="introduce" cols="50"
			rows="6"></textarea></td>
	</tr>
Example #10
0
	</tr>
	
	<tr>
		<th width="100"><?php echo L('url')?>:</th>
		<td><input type="text" name="link[url]" id="link_url"
			size="30" class="input-text" value="<?php echo $url;?>"></td>
	</tr>
	<?php if($linktype==1){?>
	<tr id="logolink">
		<th width="100"><?php echo L('logo')?>:</th>
		<td><?php echo form::images('link[logo]', 'logo', $info['logo'], 'link')?></td>
	</tr>
	<?php }else{?>
	<tr id="logolink" style="display: none;">
		<th width="100"><?php echo L('logo')?>:</th>
		<td><?php echo form::images('link[logo]', 'logo', $info['logo'], 'link')?></td>
	</tr>
	<?php }?>
	
	<tr>
		<th width="100"><?php echo L('username')?>:</th>
		<td><input type="text" name="link[username]" id="link_username"
			size="30" class="input-text" value="<?php echo $username;?>"></td>
	</tr>

 
	<tr>
		<th><?php echo L('web_description')?>:</th>
		<td><textarea name="link[introduce]" id="introduce" cols="50"
			rows="6"><?php echo $introduce;?></textarea></td>
	</tr>
	?>
	 </tr>
	 <tr>
	 <?php
		foreach($batch_array as $catid=>$cat) {
	?>
		<td><b><?php echo L('catdir')?>:</b><br><input type='text' name='info[<?php echo $catid;?>][catdir]' id='catname' class='input-text' value='<?php echo $cat['catdir']?>' style='width:250px'></td>
	<?php
		}
	?>
	 </tr>
	 <tr>
	 <?php
		foreach($batch_array as $catid=>$cat) {
	?>
		<td><b><?php echo L('catgory_img')?>:</b><br><?php echo form::images('info['.$catid.'][image]', 'image'.$catid, $cat['image'], 'content','',23);?></td>
	<?php
		}
	?>
	 </tr>
	 <tr>
	 <?php
		foreach($batch_array as $catid=>$cat) {
	?>
		<td><b><?php echo L('description')?>:</b><br><textarea name="info[<?php echo $catid;?>][description]" maxlength="255" style="width:240px;height:40px;"><?php echo $cat['description'];?></textarea></td>
	<?php
		}
	?>
	 </tr>
	 <tr>
	 <?php
//-->
</script>
<div class="pad_10">
<div class="common-form">
<form name="myform" action="?m=zl_admin&c=position&a=public_item_manage" method="post" id="myform">
<input type="hidden" name="posid" value="<?php echo $posid?>"></input>
<input type="hidden" name="modelid" value="<?php echo $modelid?>"></input>
<input type="hidden" name="id" value="<?php echo $id?>"></input>
<table width="100%" class="table_form">
<tr>
<td  width="100"><?php echo L('posid_title')?></td> 
<td><input type="text" name="info[title]" class="input-text" value="<?php echo $title?>" id="title" size="40"></input></td>
</tr>
<tr>
<td><?php echo L('posid_thumb')?></td> 
<td><?php echo form::images('info[thumb]','thumb',$thumb,'content')?> </td>
</tr>
<tr>
<td><?php echo L('posid_inputtime')?></td> 
<td><?php echo form::date('info[inputtime]', date('Y-m-d h:i:s',$inputtime), 1)?></td>
</tr>

<tr>
<td><?php echo L('posid_desc')?></td> 
<td>
<textarea name="info[description]" rows="2" cols="20" id="description" class="inputtext" style="height:100px;width:300px;"><?php echo $description?></textarea>
</td>
</tr>
<tr>
<td><?php echo L('posid_syn')?></td> 
<td>
Example #13
0
        <th width="200"><?php echo L('parent_category')?>:</th>
        <td>
		<?php echo form::select_category('category_content_'.$this->siteid,$parentid,'name="info[parentid]" id="parentid"',L('please_select_parent_category'),0,-1);?> 
		</td>
      </tr>
      <tr>
        <th><?php echo L('catname')?>:</th>
        <td><input type="text" name="info[catname]" id="catname" class="input-text" value="<?php echo $catname;?>"></td>
      </tr>
	<tr>
        <th><?php echo L('catdir')?>:</th>
        <td><input type="text" name="info[catdir]" id="catdir" class="input-text" value="<?php echo $catdir;?>"></td>
      </tr>
	<tr>
        <th><?php echo L('catgory_img')?>:</th>
        <td><?php echo form::images('info[image]', 'image', $image, 'content');?></td>
      </tr>
	<tr>
        <?php if($changjia>0){//增加品牌时加载厂家?>
	<tr>
        <th>所属厂家:</th>
        <td>
        <select name="info[changjia]" id="changjia">
		<?php
			//foreach($changjia_arr as $v) {            
				echo $changjia_arr;
			//}
			//echo form::select($changjia_arr[0],'','name="info[changjia]" id="changjia" onchange="change_tpl(this.value)"',"请选择厂家");
		?>
        </select>
</td>
  <div class="h_a">信息管理</div>
  <form name="myform" action="{:U("Contents/Position/public_item_manage")}" method="post" class="J_ajaxForm">
    <input type="hidden" name="posid" value="{$posid}"/>
    <input type="hidden" name="modelid" value="{$modelid}"/>
    <input type="hidden" name="id" value="{$id}"/>
    <div class="table_full"  style="overflow-x:hidden;">
    <table width="100%" class="table_form">
        <tr>
          <th  width="110">推荐位标题</th>
          <td><input type="text" name="data[title]" class="input" value="{$data['title']}" id="title" size="40">
            </input></td>
        </tr>
        <tr>
          <th>推荐位图片</th>
          <td><?php 
echo form::images('thumb', 'thumb', $data['thumb'], 'content');
?>
</td>
        </tr>
        <tr>
          <th>推荐时间</th>
          <td><?php 
echo Form::date('data[inputtime]', date('Y-m-d H:i:s', $data['inputtime']), 1);
?>
</td>
        </tr>
        <tr>
          <th>描述</th>
          <td><textarea name="data[description]" rows="2" cols="20" id="description" class="inputtext" style="height:200px;width:100%;">{$data['description']}</textarea></td>
        </tr>
        <tr>
Example #15
0
      <th><?php 
echo L('copyfrom_url');
?>
 :</th>
      <td><input type="text" name="info[siteurl]" id="siteurl" size="25" value="<?php 
echo $siteurl;
?>
"></td>
    </tr> 
	<tr> 
      <th><?php 
echo L('copyfrom_logo');
?>
 :</th>
      <td><?php 
echo form::images('info[thumb]', 'thumb', $thumb, 'admin');
?>
</td>
    </tr>
		<input type="hidden" name="id" value="<?php 
echo $id;
?>
">
	  <input type="submit" name="dosubmit" id="dosubmit" class="dialog" value=" <?php 
echo L('submit');
?>
 ">

</table> 
 	</form>
</div>
Example #16
0
	$(function(){
		$.formValidator.initConfig({formid:"myform",autotip:true,onerror:function(msg,obj){window.top.art.dialog({content:msg,lock:true,width:'200',height:'50'}, function(){this.close();$(obj).focus();})}});
		$("#sitename").formValidator({onshow:"<?php echo L('input').L('copyfrom_name');?>",onfocus:"<?php echo L('input').L('copyfrom_name');?>"}).inputValidator({min:1,onerror:"<?php echo L('input').L('copyfrom_name');?>"}).defaultPassed();
		$("#siteurl").formValidator({onshow:"<?php echo L('input').L('copyfrom_url');?>",onfocus:"<?php echo L('input').L('copyfrom_url');?>",empty:false}).inputValidator({onerror:"<?php echo L('input').L('copyfrom_url');?>"}).regexValidator({regexp:"^http://",onerror:"<?php echo L('copyfrom_url_tips');?>"}).defaultPassed();
	})
//-->
</script>

<div class="pad_10">
<form action="?m=zl_admin&c=copyfrom&a=edit" method="post" name="myform" id="myform" >
<table width="100%" cellpadding="2" cellspacing="1" class="table_form">
	<tr> 
      <th width="60"><?php echo L('copyfrom_name');?> :</th>
      <td><input type="text" name="info[sitename]" id="sitename" size="25" value="<?php echo $sitename;?>"></td>
    </tr>
	<tr> 
      <th><?php echo L('copyfrom_url')?> :</th>
      <td><input type="text" name="info[siteurl]" id="siteurl" size="25" value="<?php echo $siteurl;?>"></td>
    </tr> 
	<tr> 
      <th><?php echo L('copyfrom_logo')?> :</th>
      <td><?php echo form::images('info[thumb]', 'thumb', $thumb, 'admin')?></td>
    </tr>
		<input type="hidden" name="id" value="<?php echo $id?>">
	  <input type="submit" name="dosubmit" id="dosubmit" class="dialog" value=" <?php echo L('submit')?> ">

</table> 
 	</form>
</div>
</body>
</html>
Example #17
0
        <th><?php 
echo L('catdir');
?>
:</th>
        <td><input type="text" name="info[catdir]" id="catdir" class="input-text" value="<?php 
echo $catdir;
?>
"></td>
      </tr>
	<tr>
        <th><?php 
echo L('catgory_img');
?>
:</th>
        <td><?php 
echo form::images('info[image]', 'image', $image, 'content');
?>
</td>
      </tr>
	<tr>
        <th><?php 
echo L('description');
?>
:</th>
        <td>
		<textarea name="info[description]" maxlength="255" style="width:300px;height:60px;"><?php 
echo $description;
?>
</textarea>
		</td>
      </tr>
Example #18
0
:</th>
		<td><?php 
    echo form::images('link[logo]', 'logo', $info['logo'], 'link');
    ?>
</td>
	</tr>
	<?php 
} else {
    ?>
	<tr id="logolink" style="display: none;">
		<th width="100"><?php 
    echo L('logo');
    ?>
:</th>
		<td><?php 
    echo form::images('link[logo]', 'logo', $info['logo'], 'link');
    ?>
</td>
	</tr>
	<?php 
}
?>
	
	<tr>
		<th width="100"><?php 
echo L('username');
?>
:</th>
		<td><input type="text" name="link[username]" id="link_username"
			size="30" class="input-text" value="<?php 
echo $username;