| 38 |
// show image |
// show image |
| 39 |
if ( $currentcat->img ) { |
if ( $currentcat->img ) { |
| 40 |
?> |
?> |
| 41 |
<img src="<?php echo $currentcat->img; ?>" align="<?php echo $currentcat->align; ?>" hspace="6" alt="<?php echo _WEBLINKS_TITLE; ?>" /> |
<img src="<?php echo $currentcat->img; ?>" align="<?php echo $currentcat->align; ?>" hspace="6" alt="<?php echo T_('Web Links'); ?>" /> |
| 42 |
<?php |
<?php |
| 43 |
} |
} |
| 44 |
echo $currentcat->descrip; |
echo $currentcat->descrip; |
| 105 |
} |
} |
| 106 |
?> |
?> |
| 107 |
<td width="90%" height="20" class="sectiontableheader<?php echo $params->get( 'pageclass_sfx' ); ?>"> |
<td width="90%" height="20" class="sectiontableheader<?php echo $params->get( 'pageclass_sfx' ); ?>"> |
| 108 |
<?php echo _HEADER_TITLE_WEBLINKS; ?> |
<?php echo T_('Web Link'); ?> |
| 109 |
</td> |
</td> |
| 110 |
<?php |
<?php |
| 111 |
if ( $params->get( 'hits' ) ) { |
if ( $params->get( 'hits' ) ) { |
| 112 |
?> |
?> |
| 113 |
<td width="30px" height="20" class="sectiontableheader<?php echo $params->get( 'pageclass_sfx' ); ?>" align="right"> |
<td width="30px" height="20" class="sectiontableheader<?php echo $params->get( 'pageclass_sfx' ); ?>" align="right"> |
| 114 |
<?php echo _HEADER_HITS; ?> |
<?php echo T_('Hits'); ?> |
| 115 |
</td> |
</td> |
| 116 |
<?php |
<?php |
| 117 |
} |
} |
| 245 |
|
|
| 246 |
// do field validation |
// do field validation |
| 247 |
if (form.title.value == ""){ |
if (form.title.value == ""){ |
| 248 |
alert( "Weblink item must have a title" ); |
alert( <?php echo T_("Weblink item must have a title") ?> ); |
| 249 |
} else if (getSelectedValue('adminForm','catid') < 1) { |
} else if (getSelectedValue('adminForm','catid') < 1) { |
| 250 |
alert( "You must select a category." ); |
alert( <?php echo T_("You must select a category.") ?> ); |
| 251 |
} else if (form.url.value == ""){ |
} else if (form.url.value == ""){ |
| 252 |
alert( "You must have a url." ); |
alert( <?php echo T_("You must have a url.") ?> ); |
| 253 |
} else { |
} else { |
| 254 |
submitform( pressbutton ); |
submitform( pressbutton ); |
| 255 |
} |
} |
| 260 |
<table cellpadding="0" cellspacing="0" border="0" width="100%"> |
<table cellpadding="0" cellspacing="0" border="0" width="100%"> |
| 261 |
<tr> |
<tr> |
| 262 |
<td class="contentheading"> |
<td class="contentheading"> |
| 263 |
<?php echo _SUBMIT_LINK;?> |
<?php echo T_('Submit A Web Link');?> |
| 264 |
</td> |
</td> |
| 265 |
<td width="10%"> |
<td width="10%"> |
| 266 |
<?php |
<?php |
| 277 |
<table cellpadding="4" cellspacing="1" border="0" width="100%"> |
<table cellpadding="4" cellspacing="1" border="0" width="100%"> |
| 278 |
<tr> |
<tr> |
| 279 |
<td width="20%" align="right"> |
<td width="20%" align="right"> |
| 280 |
<?php echo _NAME; ?> |
<?php echo T_('Name:'); ?> |
| 281 |
</td> |
</td> |
| 282 |
<td width="80%"> |
<td width="80%"> |
| 283 |
<input class="inputbox" type="text" name="title" size="50" maxlength="250" value="<?php echo htmlspecialchars( $row->title, ENT_QUOTES );?>" /> |
<input class="inputbox" type="text" name="title" size="50" maxlength="250" value="<?php echo htmlspecialchars( $row->title, ENT_QUOTES );?>" /> |
| 285 |
</tr> |
</tr> |
| 286 |
<tr> |
<tr> |
| 287 |
<td valign="top" align="right"> |
<td valign="top" align="right"> |
| 288 |
<?php echo _SECTION; ?> |
<?php echo T_('Section:'); ?> |
| 289 |
</td> |
</td> |
| 290 |
<td> |
<td> |
| 291 |
<?php echo $lists['catid']; ?> |
<?php echo $lists['catid']; ?> |
| 293 |
</tr> |
</tr> |
| 294 |
<tr> |
<tr> |
| 295 |
<td valign="top" align="right"> |
<td valign="top" align="right"> |
| 296 |
<?php echo _URL; ?> |
<?php echo T_('URL:'); ?> |
| 297 |
</td> |
</td> |
| 298 |
<td> |
<td> |
| 299 |
<input class="inputbox" type="text" name="url" value="<?php echo $row->url; ?>" size="50" maxlength="250" /> |
<input class="inputbox" type="text" name="url" value="<?php echo $row->url; ?>" size="50" maxlength="250" /> |
| 301 |
</tr> |
</tr> |
| 302 |
<tr> |
<tr> |
| 303 |
<td valign="top" align="right"> |
<td valign="top" align="right"> |
| 304 |
<?php echo _URL_DESC; ?> |
<?php echo T_('Description:'); ?> |
| 305 |
</td> |
</td> |
| 306 |
<td> |
<td> |
| 307 |
<textarea class="inputbox" cols="30" rows="6" name="description" style="width:300px" width="300"><?php echo htmlspecialchars( $row->description, ENT_QUOTES );?></textarea> |
<textarea class="inputbox" cols="30" rows="6" name="description" style="width:300px" width="300"><?php echo htmlspecialchars( $row->description, ENT_QUOTES );?></textarea> |