Location: PHPKode > projects > ZAPms > zap/templates/galery_upload.tpl
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
{config_load file="core.conf" scope="global" section=$ui_lang}
{config_load file="galery.conf" scope="global" section=$ui_lang}
<html>
<head>
	<title>{$entry_info.entry_title}</title>
	<link href="modules/core/{$zap_theme|default:'core'}.css" rel="stylesheet" type="text/css" />
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	{literal}
		<script type="text/javascript" src="modules/core/core.js"></script>

		<script type="text/javascript">
		function loading() {
			toggle('details_form', 0);
			toggle('upload_bar', 1);
		}
		</script>
	{/literal}
	{$js_array}
</head>
<body>
{strip}

<div class="docFrame">
	<!-- Middle Frame -->
	<p class="docFrameP">{#uploadtabLabel#}</p>

	<!-- warnings-->
    {if $error_msg}
        <div class="errorMessage"><a href="#" class="i18_warn" title="{#infoLabel#}"></a> {$error_msg}</div>
    {/if}
    {if $warning_msg}
        <div class="warningMessage"><a href="#" class="i18_warn" title="{#infoLabel#}"></a> {$warning_msg}</div>
    {/if}
	<br />
	<!-- warnings-->
	
	<div id="details_form">	
	<br />
	<form method="post" enctype="multipart/form-data" id="upload_details" onSubmit="loading()" action=""> 
	<table border="0" cellspacing="2" cellpadding="2">
	<tr>
	  <td class="eTt">{#themeLabel#} / {#folderLabel#}<span class="asterix">*</span>:</td>
	  <td><select name="theme_id" id="theme_id" onChange="orderSelection('theme', 'folder', '_id', '')"></select>
		<script type="text/javascript">
		/*targetId - to obj, prefixVal - from array, selId - selected country id*/
		drawSelection('theme_id', 'theme', 0, {$details.theme_id|default:0});
		</script>
		<select name="folder_id" id="folder_id"></select>
		<script type="text/javascript">
		orderSelection('theme', 'folder', '_id', {$details.folder_id|default:0});
		</script>
		</td>
	  </tr>
	<tr>
	<td class="eTt">{#fileLabel#}<span class="asterix">*</span>:</td>
	<td><input name="file" type="file" value="" size="24" maxlength="128" /></td>
	</tr>
	<tr>
	  <td class="eTt">{#descriptionLabel#}:</td>
	  <td><textarea name="alttext" cols="40" rows="2">{$details.alttext}</textarea></td>
	  </tr>
	<tr>
	  <td class="eTt">{#propertyLabel#}:</td>
	  <td><select name="width" id="width">
		{section name=customer loop=$prop_list}
		<option value="{$prop_list[customer].id}"{if $details.width eq $prop_list[customer].id} selected{/if}>{$prop_list[customer].title}</option>
		{/section}
		</select></td>
	  </tr>
	<tr>
	  <td class="eTt">{#priorityLabel#}:</td>
	  <td class="eTt"><input name="priority" type="text" value="{$details.priority|default:1}" size="5" maxlength="4" />{#priorityText#}</td>
	  </tr>
	<tr>
	  <td class="eTt">{#statusLabel#}:</td>
	  <td>{section name=status_counter loop=$status_list}
        <label{if $details.status eq $status_list[status_counter].id}{if $details.status<2} style="background-color:#FFDFDF"{elseif $details.status==2} style="background-color:#DFFFDF"{else} style="background-color:#FFFF00"{/if}{/if}><input value="{$status_list[status_counter].id}"{if $details.status eq $status_list[status_counter].id} checked="checked"{/if} type="radio" name="status" />{$status_list[status_counter].title}</label>&nbsp; &nbsp;
        {/section}</td>
	  </tr>
	<tr>
	  <td class="eTt">{#createtimeLabel#}:</td>
	<td class="eTt">{$details.createtime|date_format:"%d.%m.%Y %H:%M:%S"|default:"--"}</td>
	</tr>
	<tr>
	  <td class="eTt">{#modifytimeLabel#}:</td>
	<td class="eTt">{$details.modifytime|date_format:"%d.%m.%Y %H:%M:%S"|default:"--"}</td>
	</tr>
	</table>
	<br />
	<div align="center">
	<input name="action" type="hidden" value="create" />
	<input name="entry_id" type="hidden" value="{$entry_info.entry_id}" />
	<input name="attr" type="hidden" value="0644" />
	<input name="subaction" type="hidden" value="upload" />
    <input name="createtime" type="hidden" value="{$details.createtime}" />
	<input name="modifytime" type="hidden" value="{$details.modifytime}" />
	<span class="brbcss"><input class="bcss" type="submit" value="&radic; {#saveButtonLabel#}" /></span>
    <span class="brbcss"><input id="newObj" class="bcss" type="button" onclick="refreshOpener('{$SID}', '{$entry_info.entry_id}', 'list', 'dir={$details.dir}')" value="&times; {#closeButtonLabel#}" /></span>
	</div>
	</form>
	</div>
	<br />
	<div id="upload_bar">
		<img src="images/loading.gif" width="32" height="32" alt="{#loadingLabel#}" />
	</div>
	<script type="text/javascript">
	toggle('upload_bar', 0);
	</script>
	</div>
{/strip}
</body>
</html>
Return current item: ZAPms