| Server IP : 208.122.213.31 / Your IP : 216.73.216.185 Web Server : Apache System : Linux msd6191.mjhst.com 4.18.0-553.137.1.el8_10.x86_64 #1 SMP Wed Jun 24 11:40:24 UTC 2026 x86_64 User : WHMCS_MIA_382 ( 1001) PHP Version : 7.4.33 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/httpd/html/tits-bigtits.com/cgi-bin/tgp/templates/ |
Upload File : |
<html>
<head>
<title>Edit Permanent Gallery</title>
<script language="JavaScript">
function setupPage()
{
var cat = '##Category##';
for( var i = 0; i < document.form.Category.options.length; i++ )
{
if( document.form.Category.options[i].value == cat )
{
document.form.Category.selectedIndex = i;
break;
}
}
}
function checkForm(form)
{
var parent = window.opener.document;
var id = form.Permanent_ID.value;
var thumb = parent.getElementById('thumb_'+id);
var nothumb = parent.getElementById('nothumb_'+id);
var prev = parent.getElementById('prev_'+id);
var name = new Array(
'Gallery_URL',
'Thumbnails',
'Expire_Date',
'Start_Date'
);
var value = new Array (
'Gallery URL',
'Thumbnails',
'Expire Date',
'Start Date'
);
for( var i = 0; i < name.length; i++ )
{
if( form.elements[name[i]] && !form.elements[name[i]].value )
{
alert(value[i] + ' Must Be Filled In');
return false;
}
}
parent.getElementById(id+'_ahref').innerHTML = form.Gallery_URL.value;
parent.getElementById(id+'_category').innerHTML = form.Category.value;
parent.getElementById(id+'_description').innerHTML = form.Description.value;
parent.getElementById(id+'_start_date').innerHTML = form.Start_Date.value;
parent.getElementById(id+'_expire_date').innerHTML = form.Expire_Date.value;
parent.getElementById(id+'_ahref').setAttribute('href', form.Gallery_URL.value);
if( thumb )
{
if( form.Thumbnail_URL.value )
{
prev.src = form.Thumbnail_URL.value + '?' + Math.random();
thumb.style.visibility = 'visible';
thumb.style.position = 'static';
nothumb.style.visibility = 'hidden';
nothumb.style.position = 'absolute';
}
else
{
thumb.style.visibility = 'hidden';
thumb.style.position = 'absolute';
nothumb.style.visibility = 'visible';
nothumb.style.position = 'static';
}
}
return true;
}
</script>
<!--[Include File ./templates/cpanel.js]-->
</head>
<body onLoad="setupPage()">
<div align="center">
<!-- GALLERY EDITING TABLE -->
<table class="outlined" width="700" cellspacing="0" cellpadding="3">
<form name="form" action="main.cgi" method="POST" onSubmit="return checkForm(this)">
<tr>
<td colspan="3" align="center" class="menuhead">
Edit Permanent Gallery
</td>
</tr>
<tr>
<td align="right">
<b>Gallery URL</b>
</td>
<td>
<input type="text" name="Gallery_URL" size="70" value="##Gallery_URL##">
</td>
</tr>
<tr>
<td align="right">
<b>Thumbnail URL</b>
</td>
<td>
<input type="text" name="Thumbnail_URL" size="70" value="##Thumbnail_URL##">
</td>
</tr>
<tr>
<td align="right">
<b>Category</b>
</td>
<td>
<select name="Category">
<!--[Loop Start Categories]-->
<option value="##Name##">##Name##</option>
<!--[Loop End]-->
</td>
</tr>
<tr>
<td align="right">
<b>Thumbnails</b>
</td>
<td>
<input type="text" name="Thumbnails" size="5" onChange="fixNumber(this)" value="##Thumbnails##">
</td>
</tr>
<tr>
<td align="right">
<b>Description</b>
</td>
<td>
<input type="text" name="Description" size="70" value="##Description##">
</td>
</tr>
<tr>
<td align="right">
<b>Name</b>
</td>
<td>
<input type="text" name="Nickname" size="30" value="##Nickname##">
</td>
</tr>
<tr>
<td align="right">
<b>Start Date</b>
</td>
<td>
<input type="text" name="Start_Date" size="15" value="##Start_Date##"> YYYY-MM-DD
</td>
</tr>
<tr>
<td align="right">
<b>Expire Date</b>
</td>
<td>
<input type="text" name="Expire_Date" size="15" value="##Expire_Date##"> YYYY-MM-DD
</td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="submit" value="Update Gallery">
<input type="hidden" name="Permanent_ID" value="##Permanent_ID##">
<input type="hidden" name="Run" value="UpdatePermanent">
<input type="hidden" name="Location" value="Both">
</td>
</tr>
</form>
</table>
<!-- END GALLERY EDITING TABLE -->
</div>
</body>
</html>