Location: PHPKode > projects > Write2Left > Skin/Weblogs.php
<?php
/*
+------------------------------------------------------
| Write2Left
| (c) timdorr
| http://www.write2left.com
| hide@address.com
| See License.txt for license info
|------------------------------------------------------
| Script: Weblogs.php
| Description:
|   Contains part of the interface's skin's default output parts
| Created Jul-01-2003
+------------------------------------------------------
*/

/* Class: Skin_Weblogs
 * Description:
 *   The generic skin parts class.
 */
class Skin_Weblogs
{
	function body_top()
	{
		return <<<EOF
<td class="main" valign="top">

<big><b>Weblog Manager</b></big>
<br /><br />
	
EOF;
	}
	
	function body_bottom()
	{
		return <<<EOF
</td>

<td class="space">&nbsp;</td>
</tr>		
EOF;
	}
	
	function log_list_head()
	{
		return <<<EOF
<table width="85%" cellspacing="0" cellpadding="3" style="border: solid 1px black">	

<tr class="dark">
<td colspan="2">Current Weblogs:</td>
</tr>

EOF;
	}
	
	function log_list_item( $log_id, $name )
	{
		return <<<EOF
<tr>
<td class="bevel" width="75" align="center">
<a href="?Action=Config&amp;new_log_id=$log_id">Edit</a> 
<a href="?Action=Weblogs&amp;M=Delete&amp;log_id=$log_id">Delete</a> 
</td> 
<td class="bevel">
$name
</td>
</tr>
EOF;
	}
	
	function log_list_foot()
	{
		return <<<EOF
</table>
<br />
EOF;
	}
	
	function new_log_form( $name='', $path='', $cache_path='', $url='' )
	{
		return <<<EOF
<form action="?Action=Weblogs&amp;M=Add" method="Post">
<b>Add a new weblog:</b><br />
<br />
Name:<br />
<input type="text" name="name" value="$name" /><br />
Local Path:<br />
<input type="text" name="path" value="$path" /><br />
System Files Path (relative to the Local Path):<br />
<input type="text" name="cache_path" value="$cache_path" /><br />
Public URL:<br />
<input type="text" name="url"  value="$url" /><br />
Timezone:<br />
<select name='timezone' class='forminput'>
<option value='-12'>(GMT - 12:00 hours) Enitwetok, Kwajalien</option>
<option value='-11'>(GMT - 11:00 hours) Midway Island, Samoa</option>
<option value='-10'>(GMT - 10:00 hours) Hawaii</option>
<option value='-9'>(GMT - 9:00 hours) Alaska</option>
<option value='-8'>(GMT - 8:00 hours) Pacific Time (US &amp; Canada)</option>
<option value='-7'>(GMT - 7:00 hours) Mountain Time (US &amp; Canada)</option>
<option value='-6'>(GMT - 6:00 hours) Central Time (US &amp; Canada), Mexico City</option>
<option value='-5' selected='selected'>(GMT - 5:00 hours) Eastern Time (US &amp; Canada), Bogota, Lima, Quito</option>
<option value='-4'>(GMT - 4:00 hours) Atlantic Time (Canada), Caracas, La Paz</option>
<option value='-3.5'>(GMT - 3:30 hours) Newfoundland</option>
<option value='-3'>(GMT - 3:00 hours) Brazil, Buenos Aires, Georgetown, Falkland Is.</option>
<option value='-2'>(GMT - 2:00 hours) Mid-Atlantic, Ascention Is., St Helena</option>
<option value='-1'>(GMT - 1:00 hours) Azores, Cape Verde Islands</option>
<option value='0'>(GMT) Casablanca, Dublin, Edinburgh, London, Lisbon, Monrovia</option>
<option value='1'>(GMT + 1:00 hours) Berlin, Brussels, Copenhagen, Madrid, Paris, Rome</option>
<option value='2'>(GMT + 2:00 hours) Kaliningrad, South Africa, Warsaw</option>
<option value='3'>(GMT + 3:00 hours) Baghdad, Riyadh, Moscow, Nairobi</option>
<option value='3.5'>(GMT + 3:30 hours) Tehran</option>
<option value='4'>(GMT + 4:00 hours) Adu Dhabi, Baku, Muscat, Tbilisi</option>
<option value='4.5'>(GMT + 4:30 hours) Kabul</option>
<option value='5'>(GMT + 5:00 hours) Ekaterinburg, Islamabad, Karachi, Tashkent</option>
<option value='5.5'>(GMT + 5:30 hours) Bombay, Calcutta, Madras, New Delhi</option>
<option value='6'>(GMT + 6:00 hours) Almaty, Colomba, Dhakra</option>
<option value='7'>(GMT + 7:00 hours) Bangkok, Hanoi, Jakarta</option>
<option value='8'>(GMT + 8:00 hours) Beijing, Hong Kong, Perth, Singapore, Taipei</option>
<option value='9'>(GMT + 9:00 hours) Osaka, Sapporo, Seoul, Tokyo, Yakutsk</option>
<option value='9.5'>(GMT + 9:30 hours) Adelaide, Darwin</option>
<option value='10'>(GMT + 10:00 hours) Melbourne, Papua New Guinea, Sydney, Vladivostok</option>
<option value='11'>(GMT + 11:00 hours) Magadan, New Caledonia, Solomon Islands</option>
<option value='12'>(GMT + 12:00 hours) Auckland, Wellington, Fiji, Marshall Island</option>
</select><br />
<br />
<input type="submit" value="Add Log" />
</form>
<br />
EOF;
	}
	
	function error( $error )
	{
		return <<<EOF
<div class="error">$error</div>
<br />
EOF;
	}
	
	function del_confirm( $log_name, $log_id )
	{
		return <<<EOF
<div class="box">
Are you sure you want to delete $log_name?<br />
<a href="?Action=Weblogs&amp;M=DoDelete&amp;log_id=$log_id">Yes</a>
 / <a href="?Action=Weblogs">No</a>
</div>
<br />
EOF;
	}
}

?>
Return current item: Write2Left