?? box.php
字號:
<?
session_start();
require "fun.php";
require "config.php";
require "header.php";
?>
<head>
<title>發布種子--<?=$sys_site_name?></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
</style>
</head>
<table width="700" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#f8f8f8">
<tr>
<td height="20"><blockquote>
</blockquote> <p> </p></td>
</tr>
<tr>
<td height="500" valign="top"><blockquote>
<?
if($_SESSION['login_status']=="common1"){
$user_name=$_SESSION['username'];
if ($post)
{
if (empty($parent))
{
$parent = 0;
}
write_card($title, $content, $writer, $parent, $adda);
}
$sort_data=file("$sys_data_dir/fl.php");
$num=count($sort_data);
if (empty($action))
{
//讀取分類信息到表單
for($a=0;$a<=$num;$a++)
{
if($sort_data[$a]=="")break;
$det=explode("|",$sort_data[$a]);
$sort_info=$sort_info."<option value=\"$det[1]\">$det[0]</option>\n";
} }
?>
<script language="JavaScript">
function check(obj)
{
var checkok = true;
if (obj.title.value == "")
{
alert ("請檢查您的標題,不可以為空!");
obj.title.focus();
return false;
}
if (obj.userfile.value == "")
{
alert ("請檢查您的種子地址,不可以為空!");
obj.userfile.focus();
return false;
}
if (obj.content.value == "")
{
alert ("請檢查您的電影簡介,不可以為空!");
obj.title.focus();
return false;
}
return checkok;
}
</script>
<html>
<head>
<title><?=$sys_site_name?>---我要發布種子</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="admin/template/css.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.STYLE2 {
color: #000000;
font-weight: bold;
}
-->
</style>
</head>
<body bgcolor="#FFFFFF">
<table width="240" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFCCFF">
<tbody>
<tr>
<td>
<table border="1" cellSpacing="0" width="100%" bgcolor="#eeeecc">
<tr>
<td valign="top">
<form name="frmwrite" method="post" enctype="multipart/form-data" action="ok.php" onSubmit="return check(document.frmwrite)">
<table bgcolor="#dff0e7" border="0" cellSpacing="0" align="center" width="100%" >
<input type="hidden" name="writer" value="<?=$user_name;?>">
<td colspan="2" align="center" bgcolor="#FF66FF">
<span class="STYLE2">發布種子</span> </td>
</tr>
<tr>
<td align="center" colSpan="2">
<table border="0" width="100%" cellSpacing="0" >
<tr>
<td bgcolor="#FFCCFF">
<strong>電影名稱:</strong>
<input type="text" maxLength="100" name="title" size="50"> </td>
</tr>
<tr>
<td bgcolor="#FFCCFF"> <strong>電影分類:</strong>
<select name="fl">
<?=$sort_info;?>
</select> </td>
</tr>
<tr>
<td bgcolor="#FFCCFF">
<strong>上傳種子:</strong>
<input type="file" id="userfile" name="userfile" size="39"> </td>
</tr>
<tr>
<td bgcolor="#FFCCFF">
<div align="left">
<strong>電影簡介:</strong>插入圖片請用 [img]圖片地址[/img] </div>
<br>
<textarea cols="60" name="content" rows="10" ></textarea></td>
</tr>
<tr>
<td bgcolor="#FFCCFF">
<p align="center"> </p>
<p align="center">
<input type="submit" value="發送" name="post">
<input type="reset" value="取消重寫">
</p> </td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</tbody>
</table>
</center>
</body>
</html>
<?php
}
else
{
echo "您還沒有登錄,請您先登錄,<a href=login.php>點這里進入登錄頁面</a>";
}
require "footer.php";?>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -