⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 userpics.tpl

📁 太烦了
💻 TPL
字号:
{strip}
<script type="text/javascript">
/* <![CDATA[ */
function conDelete(picno,typ){ldelim}

	if( confirm("{lang mkey='admin_js_error_msgs' skey=2}") )

		document.location='?userid={$userid}&del=yes&picno=' + picno + '&typ=' + typ ;
{rdelim}
function validate( form ){ldelim}

	imgSrc = form.txtimage.value;
	tnSrc = form.tnimage.value;
	if( imgSrc == '' && tnSrc == '') {ldelim}
		alert("{lang mkey='errormsgs' skey=28}");
	{rdelim} else {ldelim}
		imgExt =imgSrc.substr( imgSrc.lastIndexOf('.')+1 );
		tnExt = tnSrc.substr( imgSrc.lastIndexOf('.')+1 );

		exts = ' {$config.upload_snap_ext}';

		if ( ( imgExt != '' && exts.indexOf(imgExt) == -1) && ( tnExt != '' &&  exts.indexOf(tnExt) == -1) ) {ldelim}
			alert("{lang mkey='errormsgs' skey=29}");
		{rdelim}
		else {ldelim}
			form.submit();
		{rdelim}
	{rdelim}
{rdelim}
/* ]]> */
</script>

<table width="100%" border="0" cellpadding="0" cellspacing="0" >
	<tr>
		<td  width="100%">
			{assign var="page_hdr01_text" value="{lang mkey='upload_pictures'} "|cat:"{lang mkey="for"} "|cat:$userdata.username}
			{include file="admin/admin_page_hdr01.tpl"}
		</td>
	</tr>
	<tr>
		<td valign="top" width="100%" class="module_detail">

			<table border="0" cellpadding="{$config.cellpadding}" cellspacing="{$config.cellspacing}" width="100%">
			{if $smarty.get.msg ne ""}
				<tr>
					<td class="errors">{mylang mkey='errormsgs' skey=$smarty.get.msg}</td>
				</tr>
				<tr><td>&nbsp;</td></tr>
			{/if}
				<tr>
					<td width="100%">
						{assign var=msg value="{lang mkey='snapload_msg'}"|replace:'#MAXSIZE#':$maxsize}
						{$msg}<br /><br />
						{section name="sec" loop=$max_picture_cnt+1 start="1" step="1"}
						<form method="post" name="loadFrm{$smarty.section.sec.index}" action="saveuserpics.php" enctype="multipart/form-data" >
						<input type=hidden name="userid" value="{$userid}" />
						<input type="hidden" name="txtpicno" value="{$data[$smarty.section.sec.index].picno|default:$nextpic}"/>

						<table width="100%" border="0" cellpadding="0" cellspacing="0" >
							<tr>
								<td class="module_detail_inside" >

									{assign var="page_hdr02_text" value="{lang mkey='picture'} "|cat:" "|cat:$smarty.section.sec.index}
									{include file="admin/admin_page_hdr02.tpl"}
									<table class="table" cellspacing="0" cellpadding="0" width="100%" border="0">
										<tr><td align="center" width="50%" valign="middle" height="20">
											<span class="text_head2">{lang mkey='upload_picture_caption'}</span>
											</td>
											<td align="center" width="50%" valign="middle" height="20" >
											<span class="text_head2">{lang mkey='upload_thumbnail_caption'}</span>
											</td>
										</tr>
										<tr>
											<td align="center" width="50%">
											<img src="getsnap.php?picid={$data[$smarty.section.sec.index].picno}&amp;typ=pic&amp;width={$config.disp_snap_width}&amp;height={$config.disp_snap_height}&amp;id={$userid}" class="smallpic" alt="" /><br />
											</td>
											<td align="center" width="50%">
											<img src="getsnap.php?picid={$data[$smarty.section.sec.index].picno}&amp;typ=tn&amp;id={$userid}" class="smallpic" alt="" /><br />
											</td>
										</tr>
										<tr><td colspan="2">&nbsp;</td></tr>
										<tr>
											<td align="center" width="50%" valign="bottom" >
											<input type="file" name="txtimage"/>&nbsp;
											</td>
											<td align="center" width="50%" valign="bottom" >												<input type="file" name="tnimage"/>&nbsp;
											</td>
										</tr>
										<tr><td colspan="2">&nbsp;</td></tr>
									{if $smarty.session.AdminId > '0'}
										{*
										Process the album name portion and
										password acceptance
										*}
										<tr><td colspan="2">
											<table cellpadding="0" cellspacing="0" width="100%">
												<tr>
													<td width="6">&nbsp;</td>
													<td >{lang mkey='album_hdr'}:&nbsp;&nbsp;
														<select name="album_id">
														<option value="0" selected>{lang mkey='public'}</option>
														{foreach from=$useralbums item=album}
														<option value="{$album.id}" {if $album.id==$data[$smarty.section.sec.index].album_id} selected {/if}>{$album.name|stripslashes}</option>
														{/foreach}
														</select>
														&nbsp;&nbsp;{lang mkey='or'}&nbsp;{lang mkey='addnew'}:&nbsp;
														<input name="album_name" size="12" maxlength="25" type="text"/>
														&nbsp;
														{lang mkey='signup_password'}&nbsp;
														<input name="album_passwd" type="password" size="12"/>
														{if $data[$smarty.section.sec.index].picture ne ''}												&nbsp;<input type="submit" name="changealbum" value="{lang mkey='change_album'}" class="formbutton"/>
														{/if}
													</td>
												</tr>
											</table>
											</td>
										</tr>
									{/if}
										<tr><td colspan="2">&nbsp;</td></tr>
										<tr>
											<td align="center" width="50%">
											<input type="hidden" name="uploadtypeloadFrm{$smarty.section.sec.index}" id="uploadtypeloadFrm{$smarty.section.sec.index}" value="" />
											{if $data[$smarty.section.sec.index].picture ne ''}
											<input type="button" onclick="javascript:popUpWindow('{$smarty.const.DOC_ROOT}imgEditor/index.php?status=start&amp;typ=pic&amp;picno={$data[$smarty.section.sec.index].picno}&amp;id={$userid}', 'center', 615, 450)" value="{lang mkey='edit_pict'}" class="formbutton"/>&nbsp;
											<input type="button" onclick="javascript:conDelete('{$data[$smarty.section.sec.index].picno}','pic')" value="{lang mkey='delete'}" class="formbutton"/>&nbsp;
											{/if}
											<input type="button" value="{lang mkey='upload'}" onclick="javascript: document.getElementById('uploadtypeloadFrm{$smarty.section.sec.index}').value='pic'; validate(this.form)" class="formbutton"/>
											</td>
											<td align="center" width="50%">
											{if $data[$smarty.section.sec.index].tnpicture ne ''}
											<input type="button" onclick="javascript:popUpWindow('{$smarty.const.DOC_ROOT}imgEditor/index.php?status=start&amp;typ=tn&amp;picno={$data[$smarty.section.sec.index].picno}&amp;id={$userid}', 'center', 615, 450)" value="{lang mkey='edit_thmpnail'}" class="formbutton"/>&nbsp;
											<input type="button" onclick="javascript:conDelete('{$data[$smarty.section.sec.index].picno}','tn')" value="{lang mkey='delete'}" class="formbutton"/>&nbsp;
											{/if}
											<input type="button" value="{lang mkey='upload'}" onclick="javascript: document.getElementById('uploadtypeloadFrm{$smarty.section.sec.index}').value='tn'; validate(this.form)" class="formbutton"/>
											</td>
										</tr>
										<tr><td colspan="2">&nbsp;</td></tr>
									</table>
								</td>
							</tr>
						</table>
						</form>
						{/section}
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>
{/strip}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -