You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

134 lines
4.4 KiB

<!-- $Id: ads_info.htm 14216 2008-03-10 02:27:21Z testyang $ -->
{include file="pageheader.htm"}
<script type="text/javascript" src="../js/calendar.php?lang={$cfg_lang}"></script>
<link href="../js/calendar/calendar.css" rel="stylesheet" type="text/css" />
<div class="main-div">
<form action="ads.php" method="post" name="theForm" enctype="multipart/form-data" onsubmit="return validate()">
<table width="100%" id="general-table">
<tr>
<td class="label">
{$lang.ad_name}
</td>
<td>
<input type="text" name="ad_name" value="{$ads.ad_name}" size="35" />
<br /><span class="notice-span" {if $help_open}style="display:block" {else} style="display:none" {/if} id="NameNotic">{$lang.ad_name_notic}</span>
</td>
</tr>
<tr>
<td class="label">{$lang.position_id}</td>
<td>
<select name="position_id">
<option value='0'>請選擇</option>
{html_options options=$position_list selected=$ads.position_id}
</select>
</td>
</tr>
<tr>
<td class="label">{$lang.start_date}</td>
<td>
<input name="start_time" type="text" id="start_time" size="22" value='{$ads.start_time}' readonly="readonly" /><input name="selbtn1" type="button" id="selbtn1" onclick="return showCalendar('start_time', '%Y-%m-%d', false, false, 'selbtn1');" value="{$lang.btn_select}" class="button"/>
</td>
</tr>
<tr>
<td class="label">{$lang.end_date}</td>
<td>
<input name="end_time" type="text" id="end_time" size="22" value='{$ads.end_time}' readonly="readonly" /><input name="selbtn2" type="button" id="selbtn2" onclick="return showCalendar('end_time', '%Y-%m-%d', false, false, 'selbtn2');" value="{$lang.btn_select}" class="button"/>
</td>
</tr>
<tbody id="0">
<tr>
<td class="label">{$lang.ad_link}</td>
<td>
<input type="text" name="ad_link" value="{$ads.ad_link}" size="35" />
</td>
</tr>
<tr>
<td class="label">
{$lang.upfile_img}
</td>
<td>
<input type='file' name='ad_img' size='35' />
</td>
</tr>
<tr>
<td class="label">{$lang.img_url}</td>
<td><input type="text" name="img_url" value="{$url_src}" size="35" /></td>
</tr>
</tbody>
<tr>
<td class="label">{$lang.enabled}</td>
<td>
<input type="radio" name="enabled" value="1" {if $ads.enabled eq 1} checked="true" {/if} />{$lang.is_enabled}
<input type="radio" name="enabled" value="0" {if $ads.enabled eq 0} checked="true" {/if} />{$lang.no_enabled}
</td>
</tr>
<tr>
<td class="label">{$lang.link_man}</td>
<td>
<input type="text" name="link_man" value="{$ads.link_man}" size="35" />
</td>
</tr>
<tr>
<td class="label">{$lang.link_email}</td>
<td>
<input type="text" name="link_email" value="{$ads.link_email}" size="35" />
</td>
</tr>
<tr>
<td class="label">{$lang.link_phone}</td>
<td>
<input type="text" name="link_phone" value="{$ads.link_phone}" size="35" />
</td>
</tr>
<tr>
<td class="label">&nbsp;</td>
<td>
<input type="submit" value="{$lang.button_submit}" class="button" />
<input type="reset" value="{$lang.button_reset}" class="button" />
<input type="hidden" name="act" value="{$form_act}" />
<input type="hidden" name="id" value="{$ads.ad_id}" />
</td>
</tr>
</table>
</form>
</div>
{insert_scripts files="../js/utils.js,validator.js"}
<script language="JavaScript">
document.forms['theForm'].elements['ad_name'].focus();
<!--
var MediaList = new Array('0', '1', '2', '3');
{literal}
function showMedia(AdMediaType)
{
for (I = 0; I < MediaList.length; I ++)
{
if (MediaList[I] == AdMediaType)
document.getElementById(AdMediaType).style.display = "";
else
document.getElementById(MediaList[I]).style.display = "none";
}
}
/**
* 检查表单输入的数据
*/
function validate()
{
validator = new Validator("theForm");
validator.required("ad_name", ad_name_empty);
return validator.passed();
}
onload = function()
{
// 开始检查订单
startCheckOrder();
document.forms['theForm'].reset();
}
//-->
{/literal}
</script>
{include file="pagefooter.htm"}