<!--{template admin/tpl/header}-->
<div class="mainarea">
<div class="maininner">
<div class="tabs_header">
<ul class="tabs">
<li$actives[enabled]><a href="admincp.php?ac=magic&view=enabled"><span>ÒÑÆôÓõÀ¾ß</span></a></li>
<li$actives[disabled]><a href="admincp.php?ac=magic&view=disabled"><span>ÒѽûÓõÀ¾ß</span></a></li>
</ul>
</div>
<!--{if "edit" == $_GET['op']}-->
<form method="post" action="admincp.php?ac=magic&op=$_GET[op]&mid=$_GET[mid]&view=$_GET[view]">
<input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
<div class="bdrcontent">
<table cellspacing="0" cellpadding="0" class="formtable">
<tr>
<th style="width:15em;">Ãû³Æ</th>
<td>$thevalue[name]</td>
</tr>
<tr>
<th style="width:15em;">µÀ¾ß˵Ã÷</th>
<td>
<textarea name="description" cols="80" rows="2">$thevalue[description]</textarea>
</td>
</tr>
<tr>
<th style="width:15em;">µÀ¾ßµ¥¼Û</th>
<td>
<input type="text" name="charge" value="$thevalue[charge]" />
¹ºÂòʱµ¥¸öÐèÒª»¨·ÑµÄ»ý·ÖÖµ£¬ÐèСÓÚ65535
</td>
</tr>
<tr>
<th style="width:15em;">¾Ñé³É³¤</th>
<td>
<input type="text" name="experience" value="$thevalue[experience]" />
¹ºÂòµ¥¸ö¿ÉÒÔÔö³¤µÄ¾ÑéÖµ£¬ÐèСÓÚ65535
</td>
</tr>
<tr>
<th style="width:15em;">²¹¸øÖÜÆÚ</th>
<td>
<select name="provideperoid">
<option value="0"<!--{if $thevalue[provideperoid]==0}--> selected<!--{/if}-->>×ÜÊÇ¿ÉÒÔ</option>
<option value="3600"<!--{if $thevalue[provideperoid]==3600}--> selected<!--{/if}-->>¼ä¸ô1Сʱ</option>
<option value="86400"<!--{if $thevalue[provideperoid]==86400}--> selected<!--{/if}-->>¼ä¸ô24Сʱ</option>
<option value="604800"<!--{if $thevalue[provideperoid]==604800}--> selected<!--{/if}-->>¼ä¸ô7Ìì</option>
</select>
ÈôµÀ¾ßÉ̵êÖд˵À¾ßÒÑÊ۹⣬ÔÚ²¹¸øÖÜÆÚÄÚ×Ô¶¯²¹¸øÒ»´Î
</td>
</tr>
<tr>
<th style="width:15em;">²¹¸øÊýÄ¿</th>
<td>
<input type="text" name="providecount" value="$thevalue[providecount]" maxlength="6" />
ÈôµÀ¾ßÉ̵êÖд˵À¾ßÒÑÊ۹⣬×Ô¶¯²¹¸øÒ»´ÎµÄÊýÄ¿£¬ÐèСÓÚ65535
</td>
</tr>
<tr>
<th style="width:15em;">ʹÓÃÖÜÆÚ</th>
<td>
<select name="useperoid">
<option value="0"<!--{if $thevalue[useperoid]==0}--> selected<!--{/if}-->>×ÜÊÇ¿ÉÒÔ</option>
<option value="3600"<!--{if $thevalue[useperoid]==3600}--> selected<!--{/if}-->>¼ä¸ô1Сʱ</option>
<option value="86400"<!--{if $thevalue[useperoid]==86400}--> selected<!--{/if}-->>¼ä¸ô24Сʱ</option>
<option value="604800"<!--{if $thevalue[useperoid]==604800}--> selected<!--{/if}-->>¼ä¸ô7Ìì</option>
</select>
É趨Óû§Ê¹Óô˵À¾ßµÄʹÓÃÖÜÆÚ
</td>
</tr>
<tr>
<th style="width:15em;">ʹÓÃÊýÄ¿</th>
<td>
<input type="text" name="usecount" value="$thevalue[usecount]" maxlength="6" />
É趨Óû§ÔÚʹÓÃÖÜÆÚÄÚ×î¶àÄÜʹÓô˵À¾ßµÄ¸öÊý£¬ÐèСÓÚ65535
</td>
</tr>
<tr>
<th style="width:15em;">½û¹ºÓû§×é</th>
<td>
Ñ¡ÖеÄÓû§×é²»ÄÜÔÚµÀ¾ßÉ̵깺Âò´ËµÀ¾ß£¨µ«¿ÉÒÔ½ÓÊÜÔùÓ룩<br />
<!--{loop $usergroups $groups}-->
<!--{loop $groups $gid $value}-->
<input id="ckgid_$gid" type="checkbox" name="forbiddengid[]" value="$gid"<!--{if in_array($gid, $thevalue[forbiddengid])}-->checked<!--{/if}--> />
<label for="ckgid_$gid">$value[grouptitle]</label>
<!--{/loop}-->
<br />
<!--{/loop}-->
</td>
</tr>
<tr>
<th style="width:15em;">¿â´æÊýÄ¿</th>
<td>
<input type="text" name="storage" value="$thevalue[storage]" size="5" maxlength="5" />
</td>
</tr>
<tr>
<th style="width:15em;">ÏÔʾ˳Ðò</th>
<td>
<input type="text" name="displayorder" value="$thevalue[displayorder]" size="5" maxlength="5" />
</td>
</tr>
<tr>
<th style="width:15em;">ÊÇ·ñ½ûÓÃ</th>
<td>
<input type="checkbox" id="magicclose" name="close" value="1"<!--{if $thevalue[close]}--> checked<!--{/if}--> />
<label for="magicclose">½ûÓúóÒ³ÃæÉϽ«²»ÏÔʾ´ËµÀ¾ß</label>
</td>
</tr>
<!--{if $_GET[mid] == 'invisible'}-->
<tr>
<th style="width:15em;">×Ô¶¨ÒåЧ¹û</th>
<td>
ÇëÐ޸ĵÀ¾ßÃèÊöºÍµÀ¾ßЧ¹ûÒ»ÖÂ<br />
<table>
<tr>
<th width="100">ÒþÉíʱ¼ä</th>
<td>
<select name="custom[effectivetime]">
<option value="">ĬÈÏ</option>
<option value="86400"<!--{if $thevalue[custom][effectivetime]==86400}--> selected<!--{/if}-->>24Сʱ</option>
<option value="259200"<!--{if $thevalue[custom][effectivetime]==259200}--> selected<!--{/if}-->>3Ìì</option>
<option value="432000"<!--{if $thevalue[custom][effectivetime]==432000}--> selected<!--{/if}-->>5Ìì</option>
<option value="604800"<!--{if $thevalue[custom][effectivetime]==604800}--> selected<!--{/if}-->>7Ìì</option>
</select>
ĬÈÏΪ 24 Сʱ
</td>
</tr>
</table>
</td>
</tr>
<!--{elseif $_GET[mid] == 'superstar'}-->
<tr>
<th style="width:15em;">×Ô¶¨ÒåЧ¹û</th>
<td>
ÇëÐ޸ĵÀ¾ßÃèÊöºÍµÀ¾ßЧ¹ûÒ»ÖÂ<br />
<table>
<tr>
<th width="100">³ÖÐøÊ±¼ä</th>
<td>
<select name="custom[effectivetime]">
<option value="">ĬÈÏ</option>
<option value="86400"<!--{if $thevalue[custom][effectivetime]==86400}--> selected<!--{/if}-->>24Сʱ</option>
<option value="259200"<!--{if $thevalue[custom][effectivetime]==259200}--> selected<!--{/if}-->>3Ìì</option>
<option value="432000"<!--{if $thevalue[custom][effectivetime]==432000}--> selected<!--{/if}-->>5Ìì</option>
<option value="604800"<!--{if $thevalue[custom][effectivetime]==604800}--> selected<!--{/if}-->>7Ìì</option>
</select>
</td>
ĬÈÏΪ 7Ìì
</tr>
</table>
</td>
</tr>
<!--{elseif $_GET[mid] == 'friendnum'}-->
<tr>
<th style="width:15em;">×Ô¶¨ÒåЧ¹û</th>
<td>
ÇëÐ޸ĵÀ¾ßÃèÊöºÍµÀ¾ßЧ¹ûÒ»ÖÂ<br />
<table>
<tr>
<th width="100">Ôö¼ÓºÃÓÑÊý</th>
<td>
<select name="custom[addnum]">
<option value="">ĬÈÏ</option>
<option value="5"<!--{if $thevalue[custom][addnum]==5}--> selected<!--{/if}-->>5</option>
<option value="10"<!--{if $thevalue[custom][addnum]==10}--> selected<!--{/if}-->>10</option>
<option value="20"<!--{if $thevalue[custom][addnum]==20}--> selected<!--{/if}-->>20</option>
<option value="50"<!--{if $thevalue[custom][addnum]==50}--> selected<!--{/if}-->>50</option>
<option value="100"<!--{if $thevalue[custom][addnum]==100}--> selected<!--{/if}-->>100</option>
</select>
ĬÈÏΪ 10
</td>
</tr>
</table>
</td>
</tr>
<!--{elseif $_GET[mid] == 'attachsize'}-->
<tr>
<th style="width:15em;">×Ô¶¨ÒåЧ¹û</th>
<td>
ÇëÐ޸ĵÀ¾ßÃèÊöºÍµÀ¾ßЧ¹ûÒ»ÖÂ<br />
<table>
<tr>
<th width="100">Ôö¼ÓÈÝÁ¿</th>
<td>
<select name="custom[addsize]">
<option value="">ĬÈÏ</option>
<option value="5"<!--{if $thevalue[custom][addsize]==5}--> selected<!--{/if}-->>5M</option>
<option value="10"<!--{if $thevalue[custom][addsize]==10}--> selected<!--{/if}-->>10M</option>
<option value="20"<!--{if $thevalue[custom][addsize]==20}--> selected<!--{/if}-->>20M</option>
<option value="50"<!--{if $thevalue[custom][addsize]==50}--> selected<!--{/if}-->>50M</option>
<option value="100"<!--{if $thevalue[custom][addsize]==100}--> selected<!--{/if}-->>100M</option>
</select>
ĬÈÏΪ 10M
</td>
</tr>
</table>
</td>
</tr>
<!--{elseif $_GET[mid] == 'visit'}-->
<tr>
<th style="width:15em;">×Ô¶¨ÒåЧ¹û</th>
<td>
ÇëÐ޸ĵÀ¾ßÃèÊöºÍµÀ¾ßЧ¹ûÒ»ÖÂ<br />
<table>
<tr>
<th width="100">·ÃÎʺÃÓÑÊý</th>
<td>
<select name="custom[maxvisit]">
<option value="">ĬÈÏ</option>
<option value="5"<!--{if $thevalue[custom][maxvisit]==5}--> selected<!--{/if}-->>5</option>
<option value="10"<!--{if $thevalue[custom][maxvisit]==10}--> selected<!--{/if}-->>10</option>
<option value="20"<!--{if $thevalue[custom][maxvisit]==20}--> selected<!--{/if}-->>20</option>
<option value="50"<!--{if $thevalue[custom][maxvisit]==50}--> selected<!--{/if}-->>50</option>
</select>
ĬÈÏΪ 10
</td>
</tr>
</table>
</td>
</tr>
<!--{elseif $_GET[mid] == 'gift'}-->
<tr>
<th style="width:15em;">×Ô¶¨ÒåЧ¹û</th>
<td>
ÇëÐ޸ĵÀ¾ßÃèÊöºÍµÀ¾ßЧ¹ûÒ»ÖÂ<br />
<table>
<tr>
<th width="100">ÿ·Ý»ý·Ö×î´óÖµ</th>
<td>
<select name="custom[maxchunk]">
<option value="">ĬÈÏ</option>
<option value="5"<!--{if $thevalue[custom][maxchunk]==5}--> selected<!--{/if}-->>5</option>
<option value="10"<!--{if $thevalue[custom][maxchunk]==10}--> selected<!--{/if}-->>10</option>
<option value="20"<!--{if $thevalue[custom][maxchunk]==20}--> selected<!--{/if}-->>20</option>
<option value="50"<!--{if $thevalue[custom][maxchunk]==50}--> selected<!--{/if}-->>50</option>
<option value="100"<!--{if $thevalue[custom][maxchunk]==100}--> selected<!--{/if}-->>100</option>
<option value="999"<!--{if $thevalue[custom][maxchunk]=='999'}--> selected<!--{/if}-->>²»ÏÞ</option>
</select>
ĬÈÏΪ 20
</td>
</tr>
</table>
</td>
</tr>
<!--{elseif $_GET[mid] == 'viewmagic'}-->
<tr>
<th style="width:15em;">×Ô¶¨ÒåЧ¹û</th>
<td>
ÇëÐ޸ĵÀ¾ßÃèÊöºÍµÀ¾ßЧ¹ûÒ»ÖÂ<br />
<table>
<tr>
<th width="100">×î¶à²é¿´Êý</th>
<td>
<select name="custom[maxview]">
<option value="">ĬÈÏ</option>
<option value="5"<!--{if $thevalue[custom][maxview]==5}--> selected<!--{/if}-->>5</option>
<option value="10"<!--{if $thevalue[custom][maxview]==10}--> selected<!--{/if}-->>10</option>
<option value="20"<!--{if $thevalue[custom][maxview]==20}--> selected<!--{/if}-->>20</option>
<option value="50"<!--{if $thevalue[custom][maxview]==50}--> selected<!--{/if}-->>50</option>
<option value="999"<!--{if $thevalue[custom][maxview]=='999'}--> selected<!--{/if}-->>²»ÏÞ</option>
</select>
ĬÈÏΪ 10
</td>
</tr>
</table>
</td>
</tr>
<!--{elseif $_GET[mid] == 'viewvisitor'}-->
<tr>
<th style="width:15em;">×Ô¶¨ÒåЧ¹û</th>
<td>
ÇëÐ޸ĵÀ¾ßÃèÊöºÍµÀ¾ßЧ¹ûÒ»ÖÂ<br />
<table>
<tr>
<th width="100">×î¶à²é¿´Êý</th>
<td>
<select name="custom[maxview]">
<option value="">ĬÈÏ</option>
<option value="5"<!--{if $thevalue[custom][maxview]==5}--> selected<!--{/if}-->>5</option>
<option value="10"<!--{if $thevalue[custom][maxview]==10}--> selected<!--{/if}-->>10</option>
<option value="20"<!--{if $thevalue[custom][maxview]==20}--> selected<!--{/if}-->>20</option>
<option value="50"<!--{if $thevalue[custom][maxview]==50}--> selected<!--{/if}-->>50</option>
</select>
ĬÈÏΪ 10
</td>
</tr>
</table>
</td>
</tr>
<!--{elseif $_GET[mid] == 'detector'}-->
<tr>
<th style="width:15em;">×Ô¶¨ÒåЧ¹û</th>
<td>
ÇëÐ޸ĵÀ¾ßÃèÊöºÍµÀ¾ßЧ¹ûÒ»ÖÂ<br />
<table>
<tr>
<th width="100">×î¶à̽²âÊý</th>
<td>
<select name="custom[maxdetect]">
<option value="">ĬÈÏ</option>
<option value="5"<!--{if $thevalue[custom][maxdetect]==5}--> selected<!--{/if}-->>5</option>
<option value="10"<!--{if $thevalue[custom][maxdetect]==10}--> selected<!--{/if}-->>10</option>
<option value="20"<!--{if $thevalue[custom][maxdetect]==20}--> selected<!--{/if}-->>20</option>
<option value="50"<!--{if $thevalue[custom][maxdetect]==50}--> selected<!--{/if}-->>50</option>
</select>
ĬÈÏΪ 10
</td>
</tr>
</table>
</td>
</tr>
<!--{elseif $_GET[mid] == 'call'}-->
<tr>
<th style="width:15em;">×Ô¶¨ÒåЧ¹û</th>
<td>
ÇëÐ޸ĵÀ¾ßÃèÊöºÍµÀ¾ßЧ¹ûÒ»ÖÂ<br />
<table>
<tr>
<th width="100">×î¶àµãÃûÊý</th>
<td>
<select name="custom[maxcall]">
<option value="">ĬÈÏ</option>
<option value="5"<!--{if $thevalue[custom][maxcall]==5}--> selected<!--{/if}-->>5</option>
<option value="10"<!--{if $thevalue[custom][maxcall]==10}--> selected<!--{/if}-->>10</option>
<option value="20"<!--{if $thevalue[custom][maxcall]==20}--> selected<!--{/if}-->>20</option>
<option value="50"<!--{if $thevalue[custom][maxcall]==50}--> selected<!--{/if}-->>50</option>
</select>
ĬÈÏΪ 10
</td>
</tr>
</table>
</td>
</tr>
<!--{/if}-->
</table>
</div>
<div class="footactions">
<input type="hidden" name="mid" value="$thevalue[mid]" />
<input type="submit" name="editsubmit" value="Ìá½»" class="submit">
</div>
</form>
<!--{else}-->
<form method="post" action="admincp.php?ac=magic&view=$_GET[view]">
<input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
<div class="bdrcontent">
<table cellspacing="0" cellpadding="0" class="formtable">
<tr>
<th width="100">ͼ±ê</th>
<th>µÀ¾ß</th>
<!--{if $_GET[view] != 'disabled'}-->
<th width="80">µÀ¾ßµ¥¼Û</th>
<th width="80">ÏÔʾ˳Ðò</th>
<!--{/if}-->
<th width="80">²Ù×÷</th>
</tr>
<!--{loop $list $key $value}-->
<tr>
<th><img src="image/magic/{$value[mid]}.gif" alt="$value[name]" /></th>
<td>
<b>$value[name]</b>
<p>$value[description]</p>
</td>
<!--{if $_GET[view] != 'disabled'}-->
<td><input type="text" name="charge[$key]" value="$value[charge]" size="5" maxlength="5" /></td>
<td><input type="text" name="displayorder[$key]" value="$value[displayorder]" size="5" maxlength="5" /></td>
<!--{/if}-->
<td><a href="admincp.php?ac=magic&op=edit&mid=$key&view=$_GET[view]">±à¼</a></td>
</tr>
<!--{/loop}-->
</table>
</div>
<!--{if $_GET[view] != 'disabled'}-->
<div class="footactions">
<input type="submit" name="ordersubmit" value="¸üÐÂÊý¾Ý" class="submit">
</div>
<!--{/if}-->
</form>
<!--{/if}-->
</div>
</div>
<div class="side">
<!--{template admin/tpl/side}-->
</div>
<!--{template admin/tpl/footer}-->