コード例 #1
0
             break;
         }
     }
 case "Edit":
     echo "<font class=bigTextBold>{$cmd} Support Comments <a href=SupportTickets.php>Back to Support Tickets List</a></font>\n";
     echo "<table cellspacing=10><tr><td valign=top>";
     $cmd = "View";
     if ($ContactID) {
         $mf = new my_userinfoform();
         $mf->find_values($ContactID);
         $mf->freeze();
         $mf->display();
     }
     echo "</td><td>\n";
     $cmd = "View";
     $st->freeze();
     $st->display();
     echo "</td></tr></table>";
     $cmd = $origcmd;
     printf("<table>\n");
     $db->query("select * from SupportComments where TicketNo='" . $TicketNo . "'");
     while ($db->next_record()) {
         $send = " <a href=" . $sess->url("/SupportComments.php") . $sess->add_query(array("cmd" => "Send", "id" => $db->f(0))) . ">send</a>";
         if (empty($Mobile) and empty($Mail)) {
             $send = "";
         }
         printf("<tr><td>%s</td><td>%s:</td><td>%s</td><td>%s</td><td>{$send}</td>" . "</tr>\n", $db->f("TimeStamp"), $db->f("ByUser"), $db->f("UserName"), stripslashes($db->f("Comment")));
     }
     echo "</table>";
     $f->display();
     break;