Example #1
0
    echo '<tr>';
    echo '<th>id</th>';
    echo '<th>suggestion</th>';
    echo '<th>action_taken</th>';
    echo '</tr>';
    while ($array = mysql_fetch_assoc($result)) {
        echo '<tr>';
        echo '<td>' . $array['id'] . '</td>';
        echo '<td><textarea readonly cols=40 rows=3>' . $array['suggestion'] . '</textarea></td>';
        echo '<td><textarea readonly cols=40 rows=3>' . $array['action_taken'] . '</textarea></td>';
        echo '</tr>';
    }
    echo '</table>';
}
if (!login_varify()) {
    exit;
}
main_menu();
if (isset($_POST['action']) && strlen($_POST['suggestion']) > 20) {
    $link = start_nchsls();
    $sql = 'insert into suggestion values(\'\',\'' . $_POST['suggestion'] . '\',\'' . $_SESSION['login'] . '\',\'No action taken for the suggestion\',\'no\')';
    //echo $sql;
    if (!mysql_query($sql, $link)) {
        echo mysql_error();
    } else {
        echo '<h3>Thanks. Your suggession is under review</h3>';
    }
}
read_suggestion($_SESSION['login']);
view_suggestion();
Example #2
0
     manage_review_s($option, "published");
     break;
     //***************   end for manage reviews   *************************/
     //**********   begin for manage suggestion   *************************/
 //***************   end for manage reviews   *************************/
 //**********   begin for manage suggestion   *************************/
 case "manage_suggestion":
     manage_suggestion($option);
     break;
 case "delete_suggestion":
     delete_suggestion($option, $bid);
     manage_suggestion($option);
     break;
 case "view_suggestion":
     $bid = mosGetParam($_POST, 'bid');
     view_suggestion($option, $bid);
     break;
     //**********   end for manage suggestion   ***************************/
 //**********   end for manage suggestion   ***************************/
 case "config_backend":
     configure_backend($option);
     break;
 case "config_save_frontend":
     configure_save_frontend($option);
     break;
 case "config_save_backend":
     configure_save_backend($option);
     break;
 case "lend":
     if (mosGetParam($_POST, 'save') == 1) {
         saveLend($option, $bid);