查看單個文章
  #5  
舊 2007-06-23, 09:49 AM
琉璃仙人 的頭像
琉璃仙人 琉璃仙人 目前離線
進階會員
 
註冊日期: 2006-09-28
文章: 121
發送 MSN 消息給 琉璃仙人
預設

PHP 代碼:
{include file="header.tpl"}
{
literal}
<
script>
function 
checkform()
{
if (
document.video.titletext.value == '') {
alert('Please Enter A Title');
return 
false;

else if (
document.video.descriptiontext.value == '')
{
alert('Please Enter A description');
return 
false;
}
else if (
document.video.authortext.value == '')
{
alert('Please Enter A Author');
return 
false;
}
else if(!
document.video.picture[0].checked && !document.video.picture[1].checked && !document.video.picture[2].checked) {
alert('Please Choose A Screenshot');
return 
false;
}
// If the script gets this far through all of your fields
// without problems, it's ok and you can submit the form

return true;
}
</script>
{/literal}
<div align="center">
<form action="submit.php?pt=submit&amp;part=3" method="post" name="video" onSubmit="return checkform()">
<!--Center Page-->
<h3><b>Source</b>:{$source}
</h3>
<!--Source Of Media-->
<b>Confirm Default Screenshot</b>
<input name="videoid" type="hidden" value="{$videoid}" />
<input name="vidtype" type="hidden" value="{$vidtype}" />
<input name="file2" type="hidden" value="{$file2}" />

<table width="136" border="0">
<!--Shows All The Images-->
<tr> {section name=default loop=$image}
<td align="center" width="130"><img src="{$image[default]}" alt="{$title}" width="130" height="97" /> </td>
{/section} </tr>
<tr> {section name=default loop=$image}
<td align="center"><input name="picture" type="radio" value="{$image[default]}" checked="checked" />
</td>
{/section} </tr>
</table>
<!-- END - Shows All The Images-->
<table width="83" border="0">
<tr>
<td height="21" align="center"><b>Title</b></td>
</tr>
<tr>
<td height="21" align="center"><textarea name="titletext" cols="50" rows="1" id="titletext" style="text-align:center; text-shadow:#990000">{$title}</textarea></td>
<td>&nbsp;</td>
</tr>
<tr>
<td width="77" height="21" align="center"><b>Author</b></td>
</tr>
<tr>
<td height="42"><textarea name="authortext" cols="50" rows="1" style="text-align:center;">{$author}</textarea> </td>
<td>&nbsp;</td>
</tr>
<tr>
<td height="21" align="center"><b>內容簡介</b></td>
</tr>
<tr>
<td height="104"><textarea name="descriptiontext" cols="50" rows="6" style="text-align:center;">{$description}</textarea> </td>
<td>&nbsp;</td>
</tr>
<tr>
<td height="19" align="center"><b>Category</b></td>
</tr>
<tr>
<td height="104" align="center"><select name="category" size="6">


{section name=cat loop=$cat}
<option value="{$cat[cat].id}" {if $cat[cat].id eq "1"}selected="selected"{/if}>{$cat[cat].name}</option>
{/section}



</select> </td>
<td>&nbsp;</td>
</tr>
</table>
<p align="center">{include file="players.tpl"} </p>
<p align="center">
<input type="submit" value="Submit">
</p>
</form>
</div>
{include file="footer.tpl"} 
回覆時引用此篇文章