コード例 #1
0
ファイル: sales.php プロジェクト: BackupTheBerlios/soopa
function ShowServs()
{
    global $xoopsDB;
    include 'functions.php';
    $result = $xoopsDB->query("SELECT * FROM {$tvensrv} ORDER BY id_srv");
    xoops_cp_header();
    ShowNav();
    echo "<table width='100%' class='outer' cellspacing='1'>\n\t\t\t<tr><th colspan='4'>" . _AM_SERVS_LIST . "</th></tr>";
    while ($row = $xoopsDB->fetchArray($result)) {
        echo "<tr class='even'><td align='left'>\n\t\t\t  <a href='promos.php?op=view&amp;idp={$row['id_promo']}'>" . ServiceName($row['id_srv']) . "</a></td>\n\t\t\t  <td align='center'>" . date("d/m/Y h:i:s", $row['fecha']) . "</td>\n\t\t\t  <td align='center'>{$row['buyermail']}</td>\n\t\t\t  <td align='center'><a href='sales.php?op=promos&amp;action=del'>" . _AM_DELETE . "</a></td>\n\t\t\t  </tr>";
    }
    echo "</table>";
    xoops_cp_footer();
}
コード例 #2
0
ファイル: banners.php プロジェクト: BackupTheBerlios/soopa
function ShowBanns()
{
    global $xoopsDB;
    include 'functions.php';
    $result = $xoopsDB->query("SELECT * FROM {$tbann}");
    $num = $xoopsDB->getRowsNum($result);
    if ($num <= 0) {
        NewForm(1);
        die;
    }
    xoops_cp_header();
    ShowNav();
    echo "<a href='banners.php?op=new'>" . _AM_NEWBANN . "</a><br>\n\t\t  <table width='100%' class='outer' cellspacing='1'>\n\n\t\t\t<tr><th colspan='2' align='left'>" . _AM_BANNLIST . "</th></tr>";
    while ($row = $xoopsDB->fetchArray($result)) {
        echo "<tr class='even'><td align='left'><strong>" . ServiceName($row['id_srv']) . "</strong></td>\n\t\t\t  <td align='center'><a href='banners.php?op=view&amp;idb={$row['id_ban']}'>" . _AM_VIEW . "</a>\n\t\t\t  | <a href='banners.php?op=mod&amp;idb={$row['id_ban']}'>" . _AM_MODIFY . "</a>\n\t\t\t  | <a href='banners.php?op=del&amp;idb={$row['id_ban']}'>" . _AM_DELETE . "</a></td></tr>";
    }
    echo "</table>";
    xoops_cp_footer();
}
コード例 #3
0
ファイル: services.php プロジェクト: BackupTheBerlios/soopa
function Terminos()
{
    global $xoopsDB;
    $ids = $_GET['ids'];
    if ($ids <= 0) {
        $ids = $_POST['ids'];
    }
    if ($ids <= 0) {
        header('location: services.php');
        die;
    }
    xoops_cp_header();
    include 'functions.php';
    ShowNav();
    echo "<table width='80%' align='center' class='outer' cellspacing='1'>\n\n\t\t\t<tr>\n\t\t\t<td colspan='2'>\n\t\t\t<table width='100%' cellpadding='0' cellspacing='0'>\n\t\t\t<tr>\n\t\t\t\t<th>" . _AM_ALL_TERMS . "</th>\n\t\t\t\t<th align='left' colspan='2'>" . sprintf(_AM_ASSIGNED_TERMS, ServiceName($ids)) . "</th>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t<td align='center' class='even'>\n\t\t\t<form name='frmAdd' method='post' action='services.php'>\n\t\t\t<select name='idt' size='10'>";
    $result = $xoopsDB->query("SELECT id_term, titulo FROM {$tterms} ORDER BY titulo");
    while ($row = $xoopsDB->fetchArray($result)) {
        echo "<option value='{$row['id_term']}'>{$row['titulo']}</option>";
    }
    echo "</select><br><br>\n\t\t  <input type='button' name='del' value='" . _AM_DELETE . "' onClick=\"frmAdd.op.value='delterm'; frmAdd.submit();\">\n\n\t\t  <input type='button' name='modify' value='" . _AM_MODIFY . "' onClick=\"frmAdd.op.value='modterm'; frmAdd.submit();\">\n\n\t\t  <input type='submit' name='sbt' value='" . _AM_ADD . "'>\n\n\t\t  <input type='hidden' name='op' value='addterm'>\n\n\t\t  <input type='hidden' name='ids' value='{$ids}'>\n\n\t\t\t</form>\n\t\t\t</td>\n\t\t\t<td align='center' class='odd' width='50%'><form name='frmE' method='post' action='services.php'>\n\n\t\t\t<select name='idt' size='10'>";
    $result = $xoopsDB->query("SELECT id_term FROM {$ttrel} WHERE id_srv='{$ids}'");
    while ($row = $xoopsDB->fetchArray($result)) {
        echo "<option value='{$row['id_term']}'>" . TermName($row['id_term']) . "</option>";
    }
    echo "</select><br><br>\n\n\t\t  <input type='submit' name='del' value='" . _AM_DELETE . "'>\n\n\t\t  <input type='hidden' name='op' value='delterm'>\n\n\t\t  <input type='hidden' name='ids' value='{$ids}'>\n</form></td>\n\t\t\t</tr>\n\t\t\t</table>\n\t\t\t</td>\n\t\t\t</tr>\n\n\t\t  </table>";
    xoops_cp_footer();
}
コード例 #4
0
ファイル: promos.php プロジェクト: BackupTheBerlios/soopa
function ViewPromo()
{
    global $xoopsDB, $myts;
    $idp = $_GET['idp'];
    if ($idp <= 0) {
        ShowPromos();
        die;
    }
    include_once 'functions.php';
    $result = $xoopsDB->query("SELECT * FROM {$tpromos} WHERE id_promo='{$idp}'");
    $num = $xoopsDB->getRowsNum($result);
    if ($num <= 0) {
        redirect_header('promos.php', 1, _AM_NOEXIST);
        die;
    }
    $row = $xoopsDB->fetchArray($result);
    xoops_cp_header();
    ShowNav();
    echo "<table width='100%' class='outer' cellspacing='2'>\n\n\t\t\t<tr><th colspan='2'>{$row['nombre']}</th></tr>\n\t\t\t<tr><td class='even' align='center'>";
    if ($row['img'] != '') {
        echo "<img src='{$row['img']}' border='0'>";
    }
    echo "<br><br>\n\t\t\t<a href='promos.php?op=mod&amp;idp=" . $idp . "'>" . _AM_MODIFY . "</a><br>\n\t\t\t<a href='promos.php?op=del&amp;idp=" . $idp . "'>" . _AM_DELETE . "</a></td>\n\t\t\t<td class='odd' align='left'>" . $myts->makeTareaData4Show($row['longdesc']) . "<br><br>\n\t\t\t<strong>" . _AM_FORMPRICE . "</strong> {$row['precio']}<br>\n\t\t\t<strong>" . _AM_FORMCODE . "</strong> <span style='font-family: courier'>{$row['codigo']}</a><br>\n\t\t\t</td></table><br>";
    echo "<table width='100%' class='outer' cellspacing='2'>\n\n\t\t\t<tr><th colspan='2'>" . _AM_ASSIGNED . "</th></tr>";
    $result = $xoopsDB->query("SELECT * FROM {$tprorel} WHERE id_promo='{$idp}'");
    while ($row = $xoopsDB->fetchArray($result)) {
        echo "<tr><td class='even' align='left'>\n\t\t\t\t\t<a href='services.php?op=view&amp;ids=" . $row['id_srv'] . "'>" . ServiceName($row['id_srv']) . "</a></td>\n\n\t\t\t\t\t<td class='even' align='center'>\n\t\t\t\t\t<a href='services.php?op=mod&amp;ids=" . $row['id_srv'] . "'>" . _AM_MODIFY . "</a></td></tr>";
    }
    echo "  </table>";
    xoops_cp_footer();
}
コード例 #5
0
ファイル: Service.php プロジェクト: nibasabin/SamplePrograms
       
        <div id='box2'>
            <br>
            <center> <label style="color:yellow;font-size:30px; ">Rate Service </label><br></center>
             <form method="post">
            <div id='box2a'>
           <br> <br> <label style="margin-left:125px">Service </label><br>
              <br> <br> <label style="margin-left:125px">Ratings </label><br>
            <br> <br> <label style="margin-left:125px">Comment </label><br><br>
            </div>
            
             <div id='box2b'>
                 <br><br>
           <select style='height:30px; width:200px;' name ='Services'>
                   <option style='height:30px; width:200px;' value="Services">Services</option>
                   <?ServiceName()?> 
                       
               </select><br>
                 <br><br>
 
                 
            <select style='height:30px; width:200px;' name='Rate'>
            <option value="Ratings">Ratings</option>  
                   <option value="1">1</option>
                   <option value="2">2</option>
                   <option value="3">3</option>
                   <option value="4">4</option>
                   <option value="5">5</option>
            </select><br><br>
           <textarea name='Message' style="width:400px;height:150px;float:left"> </textarea>