wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[ljcom] r9873: LJSUP-7508. Userheads statistic and admi...

Committer: gprochaev
LJSUP-7508. Userheads statistic and admin tool updates

U   trunk/htdocs/admin/userheads/manage.bml
Modified: trunk/htdocs/admin/userheads/manage.bml
===================================================================
--- trunk/htdocs/admin/userheads/manage.bml	2010-12-20 11:43:47 UTC (rev 9872)
+++ trunk/htdocs/admin/userheads/manage.bml	2010-12-21 03:45:36 UTC (rev 9873)
@@ -117,15 +117,26 @@
     },
 );
 
-$ret .= "<table><tr><td valign='top'>";
-
 $ret .= "<form method='POST'>";
 $ret .= "<table border=0 cellspacing=1 cellpadding=4>";
-$ret .= "<tr><td>Id</td><td>Img</td><td>Cost</td><td>&nbsp;</td><td>Author</td><td>Description</td><td>Description SUP</td></tr>";
-foreach my $uh (grep { $_->get_visibility ne 'D' } @$uhs) {
+$ret .= "<tr><td>Id</td><td>Img Enb</td><td>Img Dis</td><td>Cost</td><td>&nbsp;</td><td>Author</td><td>Description</td><td>Description SUP</td></tr>";
+foreach my $uh (@$uhs) {
     $ret .= "<tr>\n";
     $ret .= "<td><input type='hidden' name='".$uh->get_uh_id."-uh_id' value='".$uh->get_uh_id."'>".$uh->get_uh_id."</td>\n";
-    $ret .= "<td><img src='".$uh->get_uh_img."'></td>\n";
+    $ret .= "<td>";
+    if ($uh->get_visibility ne 'D') {
+        $ret .= "<img src='".$uh->get_uh_img."'>";
+    } else {
+        $ret .= "&nbsp;";
+    }
+    $ret .= "</td>\n";
+    $ret .= "<td>";
+    if ($uh->get_visibility eq 'D') {
+        $ret .= "<img src='".$uh->get_uh_img."'>";
+    } else {
+        $ret .= "&nbsp;";
+    }
+    $ret .= "</td>\n";
     $ret .= "<td><input type='text' name='".$uh->get_uh_id."-price' size='5' value='".$uh->get_price."'></td>\n";
     $ret .= "<td><select name='".$uh->get_uh_id."-visibility'>\n";
     foreach my $sel (@selects) {
@@ -138,33 +149,8 @@
     $ret .= "</tr>\n";
 }
 $ret .= "<tr><td colspan='5'><input type='submit' name='save' value='Save'></td></tr>\n";
-$ret .= "</table>";
 $ret .= "</form>";
 
-$ret .= "</td><td valign='top'>";
-
-$ret .= "<table border=0 cellspacing=1 cellpadding=4>";
-$ret .= "<tr><td>Id</td><td>Img</td><td>Cost</td><td>&nbsp;</td><td>Author</td><td>Description</td><td>Description SUP</td></tr>";
-foreach my $uh (grep { $_->get_visibility eq 'D' } @$uhs) {
-    $ret .= "<tr>\n";
-    $ret .= "<td><input type='hidden' name='".$uh->get_uh_id."-uh_id' value='".$uh->get_uh_id."'>".$uh->get_uh_id."</td>\n";
-    $ret .= "<td><img src='".$uh->get_uh_img."'></td>\n";
-    $ret .= "<td><input type='text' name='".$uh->get_uh_id."-price' size='5' value='".$uh->get_price."'></td>\n";
-    $ret .= "<td><select name='".$uh->get_uh_id."-visibility'>\n";
-    foreach my $sel (@selects) {
-        $ret .= "\t<option value='".$sel->{'value'}."'".($uh->get_visibility eq $sel->{'value'} ? " selected='selected' " : "").">".$sel->{'name'}."</option>\n";
-    }
-    $ret .= "</select></td>\n";
-    $ret .= "<td><input type='text' name='".$uh->get_uh_id."-author' value='".$uh->get_uh_author."'></td>\n";
-    $ret .= "<td><input type='text' name='".$uh->get_uh_id."-desc' value='".$uh->get_uh_desc."'></td>\n";
-    $ret .= "<td><input type='text' name='".$uh->get_uh_id."-desc-sup' value='".$uh->get_uh_desc_sup."'></td>\n";
-    $ret .= "</tr>\n";
-}
-$ret .= "<tr><td colspan='5'><input type='submit' name='save' value='Save'></td></tr>\n";
-$ret .= "</table>";
-
-$ret .= "</td></tr></table>";
-
 $ret .= "<hr>";
 
 $ret .= "<form method='POST'>";

Tags: bml, ljcom, wisest-owl
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments