[ Index ] |
PHP Cross Reference of phpwcms V1.4.3 _r380 (23.11.09) |
[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 <table width="538" border="0" cellpadding="0" cellspacing="0" summary=""> 10 <tr><td colspan="3" class="title"><img src="img/leer.gif" alt="" width="1" height="5" /></td> 11 </tr> 12 <tr><td colspan="3" class="title"><?php echo $BL['be_gt_colors_title']; ?></td></tr> 13 <tr><td colspan="3" class="title"><img src="img/leer.gif" alt="" width="1" height="5" /></td> 14 </tr> 15 <tr><td colspan="3" ><img src="img/lines/l538_70.gif" alt="" width="538" height="1" /></td> 16 </tr> 17 <tr><td colspan="3" ><img src="img/leer.gif" alt="" width="1" height="5" /></td> 18 </tr> 19 <tr> 20 <td><strong><?php echo $BL['be_gt_colors_name'] ?></strong></td> 21 <td><strong><?php echo $BL['be_gt_colors_info'] ?></strong></td> 22 <td> </td> 23 </tr> 24 <tr><td colspan="3"><img src="img/leer.gif" alt="" width="1" height="5" /></td> 25 </tr> 26 <tr><td colspan="3"><img src="img/lines/l538_70.gif" alt="" width="538" height="1" /></td> 27 </tr> 28 <tr><td colspan="3"><img src="img/leer.gif" alt="" width="1" height="5" /></td> 29 </tr> 30 <?php 31 $query = "SELECT * FROM ".DB_PREPEND."phpwcms_fonts_colors ORDER BY color_value"; 32 $result = mysql_query($query, $db); 33 34 $rowcount = 0; 35 36 while ($row = mysql_fetch_assoc($result)) 37 { 38 ++$rowcount; 39 if (fmod($rowcount, 2) == 0) 40 { 41 $bgcolor = "bgcolor=\"#F5F9FA\""; 42 $bgcolor2 = "bgcolor=\"#E5E9EA\""; 43 } 44 else 45 { 46 $bgcolor = ""; 47 $bgcolor2 = "bgcolor=\"#F8F8F8\""; 48 } 49 50 $color_id = $row["color_id"]; 51 $color_name = $row["color_name"]; 52 $color_value = $row["color_value"]; 53 54 echo "<tr $bgcolor style=\"height:21px;\">\n<td>"; 55 echo '<table cellspacing="0" cellpadding="0" border="0" summary=""><tr><td>'; 56 echo " <img src=\"img/leer.gif\" width=\"15\" height=\"15\" border=\"1\" alt=\"\" style=\"border:1px 1px 1px 1px solid #000000; background-color:#$color_value;\" />"; 57 echo '</td><td> '.html_specialchars($color_name).'</td></tr></table>'; 58 echo "</td>\n <td class=\"code\">#$color_value</td>\n"; 59 echo " <td align=\"right\">\n"; 60 echo "<a href=\"phpwcms.php?do=modules&p=2&s=colors&t=update&color_id=$color_id\" title=\"".$BL['be_gt_color_edit']."\"><img src=\"img/button/edit_22x11.gif\" width=\"22\" height=\"11\" border=\"0\" alt=\"\" /></a>"; 61 echo "<a href=\"phpwcms.php?do=modules&p=2&s=colors&t=delete&color_id=$color_id\" title=\"".$BL['be_gt_color_delete']."\" onclick=\"return confirm('".$BL['be_gt_color_delete_confirm']."');\"><img src=\"img/button/del_11x11.gif\" width=\"11\" height=\"11\" border=\"0\" alt=\"\" /></a>\n"; 62 echo " </td>\n"; 63 echo "</tr>\n"; 64 } 65 ?> 66 <tr><td colspan="3"><img src="img/leer.gif" width="1" height="5" alt="" /></td></tr> 67 <tr><td colspan="3"><img src="img/lines/l538_70.gif" width="538" height="1" alt="" /></td></tr> 68 <tr><td colspan="3"><img src="img/leer.gif" width="1" height="5" alt="" /></td></tr> 69 <tr><td class="subnavinactive" colspan="4"><img src="img/leer.gif" alt="" width="3" height="12" /><img src="img/button/add_11x11.gif" alt="" width="11" height="11" border="0" /> <a href="phpwcms.php?do=modules&p=2&s=colors&t=add"><?php echo $BL['be_gt_color_add']; ?></a></td> 70 </tr> 71 </table>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Dec 30 05:55:15 2009 | Cross-referenced by PHPXref 0.7 |