album_add.htm
6.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>" />
<title>新建<?php echo $cInfos['typename']; ?> - 会员中心 - <?php echo $cfg_webname; ?></title>
<link href="templets/style/base.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="templets/js/j.js"></script>
<script type="text/javascript" src="templets/js/main.js"></script>
<script type="text/javascript" src="templets/js/album.js"></script>
<script type="text/javascript" src="templets/js/inputAutoClear.js"></script>
<script type="text/javascript" src="templets/js/load.js"></script>
<script type="text/javascript" src="templets/js/leftmenu.js"></script>
</head>
<body>
<div id="main">
<?php include(DEDEMEMBER."/templets/head.htm"); ?>
<div id="content" class="w960 clearfix">
<?php include(DEDEMEMBER."/templets/menu.php"); ?>
<div id="mcpmain">
<div id="appTab">
<ul>
<li class="thisTab"><a href="#"><span>新建<?php echo $cInfos['typename']; ?></span></a></li>
</ul>
</div>
<form name="form1" action="album_add.php" method="post" enctype="multipart/form-data" onsubmit="return checkSubmit();">
<input type="hidden" name="dopost" value="save" />
<input type="hidden" name="channelid" value="<?php echo $channelid; ?>" />
<input type="hidden" name="imagebody" id="imagebody" value='' />
<div id="mainCp">
<h3 class="meTitle"><strong>新建<?php echo $cInfos['typename']; ?></strong></h3>
<div class="postForm">
<p class="cellBg">
<label><?php echo $cInfos['typename']; ?>标题:</label>
<input name="title" type="text" id="title" value="请输入内容主题" maxlength="100" class="intxt" onfocus="inputAutoClear(this)"/>
</p>
<p>
<label>标签TAG:</label>
<input name="tags" type="text" id="tags" maxlength="100" class="intxt"/>(用逗号分开)
</p>
<p class="cellBg">
<label>作者:</label>
<input type="text" name="writer" id="writer" value="<?php echo $cfg_ml->M_UserName?>" maxlength="100" class="intxt" style="width:219px"/>
</p>
<p>
<label>隶属栏目:</label>
<?php
$typeOptions = GetOptionList(0,$channelid);
echo "<select name='typeid' size='1'>\r\n";
echo "<option value='0' selected>请选择栏目...</option>\r\n";
echo $typeOptions;
echo "</select>";
?>
<span style="color:#F00">*</span>(不能选择带颜色的分类)
</p>
<p class="cellBg">
<label>我的分类:</label>
<?php
$classlist = classification($cfg_ml->M_ID, 0, $channelid);
echo "<select name='mtypesid' size='1'>\r\n";
echo "<option value='0' selected>请选择分类...</option>\r\n";
echo $classlist;
echo "</select>";
?>
<a href="mtypes.php">添加分类</a>
</p>
<p>
<label>图集简介:</label>
<textarea name="description" id="description"></textarea>(内容的简要说明)
</p>
<p class="cellBg">
<label>缩略图:</label>
<input name="litpic" type="file" id="litpic" onchange="SeePicNew('divpicview',this);" maxlength="100" class="intxt"/>
</p>
</div>
<input name="maxwidth" type="hidden" id="maxwidth" value="<?php echo $cfg_album_width; ?>" />
<input name="prow" type="hidden" value="<?php echo $cfg_album_row; ?>" />
<input name="pcol" type="hidden" value="<?php echo $cfg_album_col; ?>" />
<input name="ddmaxwidth" type="hidden" value="<?php echo $cfg_album_ddwidth; ?>" />
<!-- 表单操作区域 -->
<h3 class="meTitle">图集内容</h3>
<div class="contentShow postForm">
<p class="cellBg">
<label>表现方式:</label>
<input name="pagestyle" type="radio" id="pagestyle1" onclick="checkMuList()" value="1" <?php if($cfg_album_style==1) echo " checked='checked'"; ?> /> 多页多图显示(适用于QQ表情等)
<input name="pagestyle" type="radio" id="pagestyle2" onclick="checkMuList()" value="2" <?php if($cfg_album_style==2) echo " checked='checked'"; ?> />多页单图显示(幻灯)
<input name="pagestyle" type="radio" id="pagestyle3" onclick="checkMuList()" value="3" <?php if($cfg_album_style==3) echo " checked='checked'"; ?>/>多行多列显示(缩略图)
<div id='spagelist' style='display:none' class="mTB10"> 每页图片数:
<input name='pagpicnum' id='pagpicnum' size='10' class="text" value='<?php echo $cfg_album_pagesize; ?>'/>
</div>
</p>
<p>
<label>手工上传:</label>
图片数目:<input name="picnum" type="text" id="picnum" size="6" value="3" maxlength="100" class="intxt"/>
<button class="buttonGary2" name='kkkup' type='button' id='kkkup2' onclick="MakeUpload(0);">增加</button>(最大60幅)
</p>
<p>
<div id="uploadfield"></div>
<script language="JavaScript">MakeUpload(2);</script>
</p>
<?php
if($safe_faq_send == '1'){
$faqkey = array_rand($safefaqs);
?>
<p class="cellBg">
<label>验证问题:</label>
<?php echo $safefaqs[$faqkey]['question'];?> (答案:<?php echo $safefaqs[$faqkey]['answer'];?>)<input class="intxt" name="safeanswer" type="text" id="safeanswer" size="25" style='width:250px;'/>
<input type="hidden" name="faqkey" value="<?php echo $faqkey;?>" />
</p>
<?php
}
//游客强制加验证码,会员则判断后台开关
if(preg_match("/3/",$safe_gdopen)){
?>
<p class="cellBg">
<label>验证码:</label>
<input name="vdcode" type="text" id="vdcode" maxlength="100" class="intxt" style='width:50px;text-transform:uppercase;' />
<img src="../include/vdimgck.php" align="absmiddle" alt="看不清?点击更换" style="cursor:pointer" onclick="this.src=this.src+'?'" />
</p>
<?php }?>
<p>
<button type="submit" class="button2">提交</button>
<button type="reset" onclick="location.reload();" class="button2 ml10">重置</button>
</p>
</div>
</div>
</form>
<!--主操作区域 -->
</div>
</div>
<?php include(DEDEMEMBER."/templets/foot.htm"); ?>
</div>
</body>
</html>