1<?php 2 3$thename = "Cuadriculado"; 4$bgcolor1 = "#cccccc"; 5$bgcolor2 = "#999999"; 6$bgcolor3 = "#cccccc"; 7$textcolor1 = "#ffffff"; 8$textcolor2 = "#000000"; 9 10function OpenTable() { 11 global $bgcolor1, $bgcolor2; 12 $content = "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\"><tr><td>\n"; 13 $content .= "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n"; 14 return $content; 15} 16 17function CloseTable() { 18 return "</td></tr></table></td></tr></table>\n"; 19} 20 21function OpenTable2() { 22 global $bgcolor1, $bgcolor2; 23 $content = "<table border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\" align=\"center\"><tr><td>\n"; 24 $content .= "<table border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n"; 25 return $content; 26} 27 28function CloseTable2() { 29 return "</td></tr></table></td></tr></table>\n"; 30} 31 32function FormatStory($thetext, $notes, $aid, $informant) { 33 global $anonymous; 34 if ($notes != "") { 35 $notes = "<b>"._NOTE."</b> <i>$notes</i>\n"; 36 } else { 37 $notes = ""; 38 } 39 if ("$aid" == "$informant") { 40 echo "<font class=\"content\" color=\"#505050\">$thetext<br>$notes</font>\n"; 41 } else { 42 if($informant != "") { 43 $boxstuff = "<a href=\"modules.php?name=Your_Account&op=userinfo&uname=$informant\">$informant</a> "; 44 } else { 45 $boxstuff = "$anonymous "; 46 } 47 $boxstuff .= "".translate("writes")." <i>\"$thetext\"</i> $notes\n"; 48 echo "<font class=\"content\" color=\"#505050\">$boxstuff</font>\n"; 49 } 50} 51 52function themeheader() { 53 echo "<body bgcolor=\"#FFFFFF\" text=\"#000000\" link=\"#000000\" vlink=\"#000000\">" 54 ."<br>"; 55 if ($banners) { 56 include("banners.php"); 57 } 58 echo parse_theme_vars("<br>" 59 ."<table border=\"0\" cellspacing=\"0\" cellpadding=\"3\" width=\"100%\" bgcolor=\"FFFFFF\">" 60 ."<tr><td width=\"100%\">" 61 ."<a href=\"index.php\"><img src=\"themes/Traditional/images/logo.gif\" alt=\"Welcome to $sitename\" border=\"0\"></a>{header}" 62 ."</td><td align=\"right\">" 63 ." " 64 ."</td>" 65 ."<td width=\"60\" align=\"left\"> </td>" 66 ."</tr></table></form>" 67 ."<br>" 68 ."<table border=\"0\" width=\"100%\" cellspacing=\"5\"><tr><td valign=\"top\">"); 69} 70 71function themefooter() { 72 global $index; 73 if ($index == 1) { 74 echo "<td> </td><td valign=\"top\" width=\"200\">"; 75 blocks(left); 76 blocks(right); 77 } 78 echo "</td></tr></table></td></tr></table>"; 79 footmsg(); 80} 81 82function themesidebox($title, $content) { 83 echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"200\" bgcolor=\"#000000\"><tr><td>" 84 ."<table width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"3\"><tr><td bgcolor=\"#cccccc\">" 85 ."<img src=\"themes/Traditional/images/tic.gif\" border=\"0\" alt=\"\">" 86 ."<font class=\"option\">$title</font></td></tr>" 87 ."<tr><td bgcolor=\"#ffffff\">" 88 ."<font class=\"content\">$content</font>" 89 ."</td></tr></table></td></tr></table>" 90 ."<br>"; 91} 92 93 94 95function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) { 96 global $anonymous; 97 if ("$aid" == "$informant") { ?> 98 99 100<table border=0 cellpadding=3 cellspacing=1 width=100%> 101<tr><td bgcolor=CCCCCC> 102<font class=title> 103<b><?php echo"$title"; ?></b><br> 104</td></tr><tr><td bgcolor=FFFFFF> 105<a href="modules.php?name=Search&query=&topic=<?php echo"$topic"; ?>&author="><img src=<?php echo"images/topics/$topicimage"; ?> border=0 Alt=<?php echo"\"$topictext\""; ?> align=right hspace=10 vspace=10></a> 106<font class=tiny> 107<?php echo translate("Posted by "); ?> <b><?php formatAidHeader($aid); echo "$aid"; ?></b> <?php echo translate("on"); ?> <?php echo"$time $timezone"; ?><br>(<?php echo $counter; ?> <?php echo translate("reads"); ?>) 108</font><br><br> 109<font class=content> 110<?php echo"$thetext<br><br></font> 111</td></tr><tr><td align=left> 112<font class=content>$morelink"; ?></font> 113</td> 114</tr> 115</table> 116<br> 117 118 119<?php } else { 120 if($informant != "") $boxstuff = "<a href=\"modules.php?name=Your_Account&op=userinfo&uname=$informant\">$informant</a> "; 121 else $boxstuff = "$anonymous "; 122 $boxstuff .= "".translate("writes")." <i>\"$thetext\"</i> $notes"; 123?> 124 125<table border=0 cellpadding=3 cellspacing=1 width=100%> 126<tr><td bgcolor=CCCCCC> 127<font class=title> 128<b><?php echo"$title"; ?></b><br> 129<font class=option> 130</td></tr><tr><td bgcolor=FFFFFF> 131<a href="modules.php?name=Search&query=&topic=<?php echo"$topic"; ?>&author="><img src=<?php echo"images/topics/$topicimage"; ?> border=0 Alt=<?php echo"\"$topictext\""; ?> align=right hspace=10 vspace=10></a> 132<font class=option> 133<?php echo translate("Posted by "); ?> <?php formatAidHeader($aid); ?> <?php echo translate("on"); ?> <?php echo"$time $timezone"; ?><br>(<?php echo $counter; ?> <?php echo translate("reads"); ?>) 134<br><br> 135</font> 136<font class=content> 137<?php echo"$boxstuff<br><br></font> 138</td></tr><tr><td align=left> 139<font class=option>$morelink"; ?></font> 140</td> 141</tr> 142</table> 143<br> 144 145<?php } 146} 147 148function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) { 149 global $admin, $sid; 150 if ("$aid" == "$informant") { 151echo" 152 153<table border=0 cellpadding=0 cellspacing=0 align=center bgcolor=000000 width=100%> 154<tr><td> 155 156<table border=0 cellpadding=3 cellspacing=1 width=100%> 157<tr><td bgcolor=CCCCCC> 158$font2 159<b>$title</b><br>$font2 Enviado el $datetime 160"; 161if ($admin) { 162 echo " $font2 [ <a href=admin.php?op=EditStory&sid=$sid>".translate("Edit")."</a> | <a href=admin.php?op=RemoveStory&sid=$sid>".translate("Delete")."</a> ]"; 163} 164echo " 165</td> 166</tr> 167<tr> 168<td bgcolor=ffffff> 169<a href=modules.php?name=Search&query=&topic=$topic&author=><img src=images/topics/$topicimage border=0 Alt=\"$topictext\" align=right hspace=10 vspace=10></a> 170$thetext 171</td> 172</tr> 173</table> 174</td> 175</tr> 176</table><br> 177"; 178 179 } else { 180 if($informant != "") $informant = "<a href=\"modules.php?name=Your_Account&op=userinfo&uname=$informant\">$informant</a> "; 181 else $boxstuff = "$anonymous "; 182 $boxstuff .= "".translate("writes")." <i>\"$thetext\"</i> $notes"; 183echo " 184 185<table border=0 cellpadding=0 cellspacing=0 align=center bgcolor=000000 width=100%> 186<tr><td> 187<table border=0 cellpadding=3 cellspacing=1 width=100%> 188<tr><td bgcolor=CCCCCC> 189$font3 190<b>$title</b><br>$font2 ".translate("Contributed by")." $informant ".translate("on")." $datetime</font> 191"; 192if ($admin) { 193 echo " $font2 [ <a href=admin.php?op=EditStory&sid=$sid>".translate("Edit")."</a> | <a href=admin.php?op=RemoveStory&sid=$sid>".translate("Delete")."</a> ]"; 194} 195echo " 196</td> 197</tr> 198<tr> 199<td bgcolor=ffffff> 200<a href=modules.php?name=Search&query=&topic=$topic&author=><img src=images/topics/$topicimage border=0 Alt=\"$topictext\" align=right hspace=10 vspace=10></a> 201$font3 $thetext 202</td> 203</tr> 204</table> 205</td> 206</tr> 207</table><br> 208"; 209 210 } 211} 212 213?> 214