Пример #1
0
$new_str = $_REQUEST['new_str'];
switch ($action) {
    case 'get_add_page':
        $page = GetPage();
        $data = array('page' => $page);
        break;
    case 'get_edit_page':
        $page = GetPage(Get($id));
        $data = array('page' => $page);
        break;
    case 'get_add_page_detail':
        $page = GetPageDetail();
        $data = array('page' => $page);
        break;
    case 'get_edit_page_detail':
        $page = GetPageDetail(GetDetail($id));
        $data = array('page' => $page);
        break;
    case 'get_list':
        $count = $_REQUEST['count'];
        $hidden = $_REQUEST['hidden'];
        $rResult = mysql_query("SELECT  `scenario_handbook`.`id`,\r\n\t\t                                `scenario_handbook`.`name`\r\n\t\t                        FROM    `scenario_handbook`\r\n\t\t\t\t\t\t\t    WHERE \t`scenario_handbook`.`actived`=1");
        $data = array("aaData" => array());
        while ($aRow = mysql_fetch_array($rResult)) {
            $row = array();
            for ($i = 0; $i < $count; $i++) {
                /* General output */
                $row[] = $aRow[$i];
                if ($i == $count - 1) {
                    $row[] = '<div class="callapp_checkbox">
                                  <input type="checkbox" id="callapp_checkbox_' . $aRow[$hidden] . '" name="check_' . $aRow[$hidden] . '" value="' . $aRow[$hidden] . '" class="check" />
Пример #2
-9
            $output[] = "Author: {$r['2']} <br>";
            $output[] = "Publisher: {$r['3']} <br>";
            $output[] = "Price: {$r['4']} <br>";
            $output[] = "<a href=cart.php?bid={$r['0']}&action=add>Add To Cart</a><br>";
            $output[] = "</td>";
            $output[] = "</tr>";
        }
        $output[] = "</table>";
        $con->db_Close();
    }
    echo join($output);
}
?>
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
        <?php 
GetDetail();
?>
    </body>
</html>