Location: PHPKode > projects > Uchome and Discuz > admin/tpl/cron.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=cron"><span>ä¯ÀÀÈ«²¿</span></a></li>
			<li class="null"><a href="admincp.php?ac=cron&op=add">Ìí¼Óмƻ®ÈÎÎñ</a></li>
		</ul>
	</div>
	
	<form method="post" action="admincp.php?ac=cron&cronid=$cronid">
	<input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
	<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="25" name="filename" value="$thevalue[filename]" type="text">
			<br>²»ÄÜ°üº¬Â·¾¶£¬³ÌÐò½Å±¾±ØÐë´æ·ÅÓÚ ./source/cron/ Ŀ¼ÖÐ
		</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><select name="weekday">
			<option value="-1">*</option>
			<option value="0"$weekdays[0]>ÐÇÆÚÈÕ</option>
			<option value="1"$weekdays[1]>ÐÇÆÚÒ»</option>
			<option value="2"$weekdays[2]>ÐÇÆÚ¶þ</option>
			<option value="3"$weekdays[3]>ÐÇÆÚÈý</option>
			<option value="4"$weekdays[4]>ÐÇÆÚËÄ</option>
			<option value="5"$weekdays[5]>ÐÇÆÚÎå</option>
			<option value="6"$weekdays[6]>ÐÇÆÚÁù</option>
			</select>
			<br>±¾ÉèÖûḲ¸ÇÏÂÃæµÄ¡°ÈÕ¡±É趨</td></tr>
	<tr>
		<th>ÈÕ</th>
		<td>
		<select name="day">
		<option value="-1">*</option>
		$daystr
		</select></td></tr>
	<tr>
		<th>Сʱ</th>
		<td>
		<select name="hour">
		<option value="-1">*</option>
		$hourstr
		</select></td></tr>
	<tr>
		<th>·ÖÖÓ</th>
		<td>
		$minuteselect</td></tr>
	</table>
	
	</div>
	<div class="footactions">
	<input type="submit" name="cronsubmit" value="Ìá½»" class="submit">
	
	
<!--{else}-->
	<table cellspacing="0" cellpadding="0" class="formtable">
	<tr>
		<th>ÈÎÎñÃû</th>
		<th>ÉÏ´ÎÖ´ÐÐ/Ï´ÎÖ´ÐÐ</th>
		<th>²Ù×÷</th>
	</tr>
	<!--{loop $list $cron}-->
	<tr>
		<td><b>$cron[name]</b><br />$cron[filename]</td>
		<td>$cron[lastrun]<br>$cron[nextrun]</td>
		<td><a href="admincp.php?ac=cron&op=edit&cronid=$cron[cronid]">±à¼­</a>
		<!--{if $cron['available']}-->&nbsp;|&nbsp;<a href="admincp.php?ac=cron&op=run&cronid=$cron[cronid]">Ö´ÐÐ</a><!--{/if}-->
		<!--{if $cron['type']!='system'}-->&nbsp;|&nbsp;<a href="admincp.php?ac=cron&op=delete&cronid=$cron[cronid]">ɾ³ý</a><!--{/if}-->
		</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