<!--{template header}-->
<!--{if $_GET['op'] == 'delete'}-->
<h1>Delete Hot</h1>
<a href="javascript:hideMenu();" class="float_del" title="Close">Close</a>
<div class="popupmenu_inner" id="__topicform_{$topicid}">
<form id="topicform_{$topicid}" name="topicform_{$topicid}" method="post" action="cp.php?ac=topic&op=delete&topicid=$topicid">
<p>Are you sure do you want to delete Hot?</p>
<p class="btn_line">
<input type="hidden" name="refer" value="$_SGLOBAL[refer]" />
<input type="submit" name="deletesubmit" value="Delete" class="submit" />
</p>
<input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
</form>
</div>
<!--{elseif $_GET['op'] == 'ignore'}-->
<h1>Remove info</h1>
<a href="javascript:hideMenu();" class="float_del" title="Close">Close</a>
<div class="popupmenu_inner" id="__topicform_{$topicid}">
<form id="topicform_{$topicid}" name="topicform_{$topicid}" method="post" action="cp.php?ac=topic&op=join&topicid=$_GET[topicid]&id=$_GET[id]&idtype=$_GET[idtype]">
<p>
Are you sure do you want to delete this Hot?<br>
This will not delete the real data.
</p>
<p class="btn_line">
<input type="hidden" name="refer" value="$_SGLOBAL[refer]" />
<input type="hidden" name="newtopicid" value="0">
<input type="submit" name="joinsubmit" value="Submit" class="submit" />
</p>
<input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
</form>
</div>
<!--{elseif $_GET['op'] == 'join'}-->
<h1>Select Hot</h1>
<a href="javascript:hideMenu();" class="float_del" title="Close">Close</a>
<div class="popupmenu_inner" id="__topicjoinform">
<form id="topicjoinform" name="topicjoinform" method="post" action="cp.php?ac=topic&op=join&id=$_GET[id]&idtype=$_GET[idtype]">
<p>
Select one HOT:<br>
<select name="newtopicid">
<option value=""> </option>
<!--{loop $tlist $value}-->
<option value="$value[topicid]">$value[subject]</option>
<!--{/loop}-->
</select>
</p>
<p class="btn_line">
<input type="hidden" name="refer" value="$_SGLOBAL[refer]" />
<input type="submit" name="joinsubmit" value="Submit" class="submit" />
</p>
<input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
</form>
</div>
<!--{else}-->
<h2 class="title"><img src="image/app/topic.gif" />HOT</h2>
<div class="tabs_header">
<ul class="tabs">
<li class="active"><a href="cp.php?ac=topic"><span>Add new Hot</span></a></li>
<li><a href="space.php?do=topic"><span>Back to HOT List</span></a></li>
</ul>
<!--{if $_SGLOBAL[refer]}-->
<div class="r_option">
<a href="$_SGLOBAL[refer]">« Prev. Page</a>
</div>
<!--{/if}-->
</div>
<div class="c_form">
<form method="post" action="cp.php?ac=topic&topicid=$topicid" enctype="multipart/form-data">
<table cellspacing="4" cellpadding="4" width="100%" class="infotable">
<tr>
<th width="100">Hot's Title</th>
<td>
<input type="text" name="subject" value="$topic[subject]" size="80" />
</td>
</tr>
<tr>
<th>Hot's image</th>
<td>
<table><tr>
<!--{if $topic['pic']}-->
<td><img src="$topic[pic]" width="150"></td>
<!--{/if}-->
<td><input type="file" name="pic" value="" /></td>
</tr></table>
</td>
</tr>
<tr>
<th>Descripption</th>
<td>
<textarea name="message" rows="8" cols="80">$topic[message]</textarea>
</td>
</tr>
<tr>
<th>Select the Mode</th>
<td>
<input type="checkbox" name="jointype[]" value="blog"$jointypes[blog]>Blog
<input type="checkbox" name="jointype[]" value="pic"$jointypes[pic]>Photo
<input type="checkbox" name="jointype[]" value="thread"$jointypes[thread]>Topic
<input type="checkbox" name="jointype[]" value="poll"$jointypes[poll]>Poll
<input type="checkbox" name="jointype[]" value="event"$jointypes[event]>Event
<input type="checkbox" name="jointype[]" value="share"$jointypes[share]>Share
</td>
</tr>
<tr>
<th>Which level people will allow</th>
<td>
<!--{eval $i=0;}-->
<table><tr>
<!--{loop $usergroups $groups}-->
<!--{loop $groups $gid $value}-->
<td><input type="checkbox" name="joingid[]" value="$gid"$joingids[$gid]>$value[grouptitle]</td>
<!--{if $i%4==3}--></tr><tr><!--{/if}-->
<!--{eval $i++;}-->
<!--{/loop}-->
<!--{/loop}-->
</tr></table>
</td>
</tr>
<tr>
<th>Ending Date to participate</th>
<td>
<script type="text/javascript" src="source/script_calendar.js" charset="$_SC[charset]"></script>
<input type="text" name="endtime" value="$topic[endtime]" id="endtime" onclick="showcalendar(event,this,1,'$topic[endtime]', '$topic[endtime]')">
<br>it should be not Empty. After the expiry of the excitement will only be able to browse, no longer allowed to participate.
</td>
</tr>
<tr>
<th> </th>
<td><input type="submit" name="topicsubmit" value="Submit" class="submit" /></td>
</tr>
</table>
<input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
</form>
</div>
<!--{/if}-->
<!--{template footer}-->