Location: PHPKode > projects > Uchome and Discuz > admin/tpl/task.htm
<!--{template admin/tpl/header}-->

<div class="mainarea">
<div class="maininner">

<div class="tabs_header">
	<ul class="tabs">
		<li$actives[view]><a href="admincp.php?ac=task"><span>ä¯ÀÀÈ«²¿ÈÎÎñ</span></a></li>
		<li class="null"><a href="admincp.php?ac=task&op=add">Ìí¼ÓÐÂÈÎÎñ</a></li>
	</ul>
</div>

	<form method="post" action="admincp.php?ac=task&taskid=$taskid">
	<input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
	<div class="bdrcontent">
		ͨ¹ýÓн±ÈÎÎñ£¬Äú¿ÉÒÔʵÏÖÒýµ¼Õ¾ÄÚµÄÐÂÈ˸üºÃµÄÍêÉÆ×Ô¼ºµÄÍ·Ïñ¡¢×ÊÁϺͷ¢±íÐÅÏ¢£»»¹¿ÉÒÔʵÏÖÔÚ½ÚÈÕÆÚ¼ä¸øÓû§·¢ËÍ»ý·Ö£»Óû§¶¨ÆÚÁìÈ¡»ý·Öºì°üµÈ¸÷ÖÖÈÎÎñ¡£Óн±ÈÎÎñ¿ÉÒÔ´ø¶¯Óû§¸üÈÝÒ×µÄÈÚÈëµ½Õ¾ÄÚµÄÆø·ÕÖÐÀ´¡£
	</div>
	<br>

	<div class="bdrcontent">
		
<!--{if $_GET['op']=='edit' || $_GET['op']=='add'}-->
	
	<table cellspacing="0" cellpadding="0" class="formtable">
	<tr>
		<th style="width:12em;">Óн±ÈÎÎñÃû</th>
		<td><input size="25" name="name" value="$thevalue[name]" type="text">
		</td>
	</tr>
	<tr>
		<th>Óн±ÈÎÎñͼƬ</th>
		<td><input size="100" name="image" value="$thevalue[image]" type="text"><br>ÊäÈëÓн±ÈÎÎñͼƬµÄURLµØÖ·£¬²»ÒªÌ«´ó£¬½¨Ò鳤60px£¬¿í60pxµÄСͼƬ
		</td>
	</tr>
	<tr>
		<th>Óн±ÈÎÎñ˵Ã÷</th>
		<td><textarea name="note" rows="8" style="width:90%;">$thevalue[note]</textarea>
		<br>Ö§³Öhtml´úÂ룬ÎÄ×Ö»»ÐÐÇëʹÓÃ&lt;br&gt;±êÇ©¡£
		</td></tr>
	<tr>
		<th>Óн±ÈÎÎñ½±Àø»ý·Ö</th>
		<td><input type="text" name="credit" value="$thevalue[credit]" size="10">
		<br>ÉèÖÃÓû§Íê³É¸ÃÓн±ÈÎÎñºó¿ÉÒÔ»ñµÃµÄ»ý·Ö½±Àø¡£Îª0£¬Ôò²»½±Àø»ý·Ö¡£
		</td>
	</tr>
	<tr>
		<th>Óн±ÈÎÎñÍê³ÉÊýÏÞÖÆ</th>
		<td><input type="text" name="maxnum" value="$thevalue[maxnum]" size="10">
		<br>ÉèÖøÃÓн±ÈÎÎñ×î¶à¿ÉÍê³É¶àÉÙÈ˴Ρ£³¬¹ý¸ÃÈ˴κ󣬸ÃÓн±ÈÎÎñ½«×Ô¶¯Ê§Ð§¡£Îª0£¬Ôò²»ÏÞÖÆ¡£
		<!--{if $thevalue[num]}--><br><b>Ä¿Ç°¸ÃÓн±ÈÎÎñÒѾ­Íê³É $thevalue[num] ÈË´Î</b>¡£<!--{/if}-->
		</td>
	</tr>
	<tr>
		<th>Óн±ÈÎÎñ´¦ÀíPHP½Å±¾</th>
		<td>./source/task/<input size="25" name="filename" value="$thevalue[filename]" type="text">
			<br>²»ÄÜ°üº¬Â·¾¶£¬³ÌÐò½Å±¾±ØÐë´æ·ÅÓÚ ./source/task/ Ŀ¼ÖÐ
			<br>±¾¹¦ÄÜΪ¸ß¼¶Ó¦Óã¬Óн±ÈÎÎñ½Å±¾µÄ±àд£¬ÐèÒªÄú¶®Ò»¶¨PHP֪ʶ¡£
			<br>Çë²Î¿¼ÏµÍ³×Ô´øµÄÓн±ÈÎÎñ½Å±¾ ./source/task/sample.php ÖеÄ˵Ã÷À´±àд¡£
		</td></tr>
	<tr>
		<th>ÓÐЧÐÔ</th>
		<td><input type="radio" name="available" value="1"$availables[1]>ÓÐЧ <input type="radio" name="available" value="0"$availables[0]>ÎÞЧ
		</td>
	</tr>
	<tr>
		<th>¿ªÊ¼ÈÕÆÚ</th>
		<td><input type="text" name="starttime" value="$thevalue[starttime]" size="25"> (¸ñʽ£º2008-08-08 00:00:00)
		<br>ÉèÖøÃÓн±ÈÎÎñ¿ªÊ¼µÄÈÕÆÚ¡£Îª¿ÕΪÁ¢¼´¿ªÊ¼¡£
		</td>
	</tr>
	<tr>
		<th>½áÊøÈÕÆÚ</th>
		<td><input type="text" name="endtime" value="$thevalue[endtime]" size="25"> (¸ñʽ£º2008-08-08 23:59:59)
		<br>ÉèÖøÃÓн±ÈÎÎñ½áÊøµÄÈÕÆÚ¡£Îª¿ÕΪÓÀ¾ÃÓÐЧ¡£
		</td>
	</tr>
	<tr>
		<th>Óû§Öظ´Ö´ÐÐÖÜÆÚ</th>
		<td>
		<select name="nexttype" onchange="show_nexttime(this.value);">
		<option value="">²»Öظ´</option>
		<option value="day"$nexttypearr[day]>ÿÌì</option>
		<option value="hour"$nexttypearr[hour]>Õûµã</option>
		<option value="time"$nexttypearr[time]>¼ä¸ôÖ¸¶¨Ê±¼ä</option>
		</select>
		<span id="nexttime" style="display:{$nextimestyle};">
			¼ä¸ô <input type="text" name="nexttime" value="$thevalue[nexttime]" size="10"> Ãëºó¿ÉÖظ´Ö´ÐÐ
		</span>
		
		<script>
		function show_nexttime(type) {
			if(type == 'time') {
				$('nexttime').style.display ='';
			} else {
				$('nexttime').style.display ='none';
			}
		}
		</script>
		</td>
	</tr>
	<tr>
		<th>ÓÅÏÈ˳Ðò</th>
		<td><input type="text" name="displayorder" value="$thevalue[displayorder]" size="10"><br>Êý×ÖԽС£¬ÅÅÐòÔ½¿¿Ç°£¬ÓÅÏȼ¶Ô½¸ß
		</td>
	</tr>
	</table>
	
	</div>
	<div class="footactions">
	<input type="submit" name="tasksubmit" value="Ìá½»" class="submit">
	
	
<!--{else}-->
	<table cellspacing="0" cellpadding="0" class="formtable">
	<tr>
		<th width="80">ͼƬ</th>
		<th>Óн±ÈÎÎñÃû/Óн±ÈÎÎñ½Å±¾</th>
		<th>»ý·Ö½±Àø</th>
		<th>ÓÐЧÆÚ</th>
		<th>²Ù×÷</th>
	</tr>
	<!--{loop $list $task}-->
	<tr>
		<td><img src="$task[image]" width="60" height="60"></td>
		<td>$task[name]<br>$task[filename]</td>
		<td>$task[credit]</td>
		<td><!--{if $task[available]}-->$task[starttime]<br>$task[endtime]<!--{else}-->ÎÞЧ<!--{/if}--></td>
		<td><a href="admincp.php?ac=task&op=edit&taskid=$task[taskid]">±à¼­</a>
		&nbsp;|&nbsp;<a href="admincp.php?ac=task&op=delete&taskid=$task[taskid]">ɾ³ý</a>
		</td>
	</tr>
	<!--{/loop}-->
	</table>
	
<!--{/if}-->

	</div>
	</form>

</div>
</div>

<div class="side">
	<!--{template admin/tpl/side}-->
</div>

<!--{template admin/tpl/footer}-->
Return current item: Uchome and Discuz