[ Index ] |
PHP Cross Reference of phpwcms V1.4.7 _r403 (01.11.10) |
[Summary view] [Print] [Text view]
1 <?php 2 // ---------------------------------------------------------------- 3 // obligate check for phpwcms constants 4 if (!defined('PHPWCMS_ROOT')) { 5 die("You Cannot Access This Script Directly, Have a Nice Day."); 6 } 7 // ---------------------------------------------------------------- 8 9 ?> 10 <table width="538" border="0" cellpadding="0" cellspacing="0" summary=""> 11 <tr><td colspan="3" class="title"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr> 12 <tr><td colspan="3" class="title"><?php echo $BL['be_gt_styles_title']; ?></td></tr> 13 <tr><td colspan="3" class="title"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr> 14 <tr><td colspan="3" ><img src="img/lines/l538_70.gif" alt="" width="538" height="1" /></td></tr> 15 <tr><td colspan="3" ><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr> 16 <tr> 17 <td><strong><?php echo $BL['be_gt_styles_name'] ?></strong></td> 18 <td><strong><?php echo $BL['be_gt_styles_preview'] ?></strong></td> 19 <td> </td> 20 </tr> 21 <tr><td colspan="3"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr> 22 <tr><td colspan="3"><img src="img/lines/l538_70.gif" alt="" width="538" height="1" /></td></tr> 23 <tr><td colspan="3"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr> 24 <?php 25 26 //$gtarray = gt2array($db); 27 28 $query = "SELECT * FROM ".DB_PREPEND."phpwcms_fonts_styles ORDER BY style_name"; 29 $result = mysql_query($query, $db); 30 31 $rowcount = 0; 32 33 while ($row = mysql_fetch_assoc($result)) 34 { 35 ++$rowcount; 36 if (fmod($rowcount, 2) == 0) 37 { 38 $bgcolor = "bgcolor=\"#F5F9FA\""; 39 $bgcolor2 = "bgcolor=\"#E5E9EA\""; 40 } 41 else 42 { 43 $bgcolor = ""; 44 $bgcolor2 = "bgcolor=\"#F8F8F8\""; 45 } 46 47 $style_id = $row["style_id"]; 48 $style_name = $row["style_name"]; 49 $style_preview = get_gt_by_style(array(1 => $style_name, 2 => $style_name)); //$gtarray, 50 51 echo "<tr $bgcolor>\n"; 52 echo " <td valign=\"top\">$style_name</td>\n"; 53 echo " <td>$style_preview</td>\n"; 54 echo " <td align=\"right\" valign=\"top\">\n"; 55 echo "<a href=\"phpwcms.php?do=modules&p=2&s=styles&t=update&style_id=$style_id\" title=\"".$BL['be_gt_style_edit']."\"><img src=\"img/button/edit_22x11.gif\" width=\"22\" height=\"11\" border=\"0\" alt=\"\" /></a>"; 56 echo "<a href=\"phpwcms.php?do=modules&p=2&s=styles&t=delete&style_id=$style_id\" title=\"".$BL['be_gt_style_delete']."\" onclick=\"return confirm('".$BL['be_gt_style_delete_confirm']."');\"><img src=\"img/button/del_11x11.gif\" width=\"11\" height=\"11\" border=\"0\" alt=\"\" /></a>\n"; 57 echo " </td>\n"; 58 echo "</tr>\n"; 59 } 60 ?> 61 <tr><td colspan="3"><img src="img/leer.gif" width="1" height="5" alt="" /></td></tr> 62 <tr><td colspan="3"><img src="img/lines/l538_70.gif" width="538" height="1" alt="" /></td></tr> 63 <tr><td colspan="3"><img src="img/leer.gif" width="1" height="5" alt="" /></td></tr> 64 <tr><td class="subnavinactive" colspan="4"><img src="img/leer.gif" width="3" height="12" alt="" /><img src="img/button/add_11x11.gif" width="11" height="11" border="0" alt="" /> <a href="phpwcms.php?do=modules&p=2&s=styles&t=add"><?php echo $BL['be_gt_style_add']; ?></a></td></tr> 65 </table>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Tue Nov 16 22:51:00 2010 | Cross-referenced by PHPXref 0.7 |