예제 #1
0
<?php

include_once 'config/db_conn.php';
include_once 'db_config/db_gigs.php';
include_once 'db_config/db_catagory.php';
$catagory = new catagory();
$cid = $_REQUEST['cid'];
$rs_catagory = $catagory->uniq_catagory_list("catagory_id", $cid);
if ($_REQUEST['submit']) {
    $table = 'ninerr_catagory';
    $dataArray = array("catagory_name" => $_REQUEST['catagory_name']);
    $dataArray = array("catagory_description" => $_REQUEST['catagory_description']);
    $dataArray = array("catagory_status" => $_REQUEST['catagory_status']);
    $fldArray = array("catagory_id" => $_REQUEST['id']);
    $catagory->dataUpdate($table, $dataArray, $fldArray);
    reDirect('catagory.php');
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Orders - Admin</title>
<link rel="stylesheet" type="text/css" href="css/theme.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script>
   var StyleFile = "theme" + document.cookie.charAt(6) + ".css";
   document.writeln('<link rel="stylesheet" type="text/css" href="css/' + StyleFile + '">');
</script>
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="css/ie-sucks.css" />
예제 #2
0
파일: edit_gigs.php 프로젝트: mix376/biverr
<?php

session_start();
$gigs_id = $_REQUEST['id'];
include_once 'config/db_conn.php';
include_once 'db_config/db_catagory.php';
include_once 'db_config/db_user.php';
include_once 'db_config/db_gigs.php';
$gigs_obj = new gigs();
$catagory = new catagory();
$rs = $catagory->catagory_list();
$user = new user();
$rs_user = $user->user_list();
$rs_gigs = $gigs_obj->uniq_gigs_list('id', $gigs_id);
$data_gigs = mysql_fetch_array($rs_gigs);
$i = 0;
if ($_REQUEST['gigs_title'] != '') {
    $gigs_title = $_REQUEST['gigs_title'];
}
if ($_REQUEST['submit']) {
    $gigs = array();
    $gigs['gigs_title'] = $_REQUEST['gigs_title'];
    $gigs['catagory_id'] = $_REQUEST['catagory_id'];
    $gigs['user_id'] = $_SESSION['user_id'];
    $gigs['gigs_description'] = htmlentities($_REQUEST['gigs_description'], ENT_QUOTES);
    $gigs['gigs_keywords_tags'] = $_REQUEST['gigs_keywords_tags'];
    $gigs['gigs_maxi_days_to_comp'] = $_REQUEST['gigs_maxi_days_to_comp'];
    if ($_FILES['gigs_image']['name'] != '') {
        $gigs['gigs_image'] = date("ymdhi") . $_FILES['gigs_image']['name'];
    }
    $fldArray = array();
예제 #3
0
<?php

include_once 'config/db_conn.php';
include_once 'db_config/db_gigs.php';
include_once 'db_config/db_catagory.php';
$catagory = new catagory();
$rs_catagory = $catagory->catagory_list();
if ($_REQUEST['submit']) {
    $table = 'ninerr_catagory';
    $catagory_name = $_REQUEST['catagory_name'];
    $catagory_description = $_REQUEST['catagory_description'];
    $dataArray = array("catagory_name" => $catagory_name, "catagory_description" => $catagory_description);
    $catagory->dataInsert($table, $dataArray);
    reDirect('catagory.php');
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Orders - Admin</title>
<link rel="stylesheet" type="text/css" href="css/theme.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script>
   var StyleFile = "theme" + document.cookie.charAt(6) + ".css";
   document.writeln('<link rel="stylesheet" type="text/css" href="css/' + StyleFile + '">');
</script>
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="css/ie-sucks.css" />
<![endif]-->
</head>
예제 #4
0
파일: users.php 프로젝트: mix376/biverr
session_start();
include_once 'config/db_conn.php';
include_once 'db_config/db_gigs.php';
include_once 'db_config/db_catagory.php';
include_once 'db_config/db_user.php';
include_once 'db_config/db_review.php';
$user = new user();
$review = new review();
$arr_var = explode('_', $_REQUEST['title']);
$gigs_title = str_replace('-', ' ', $arr_var[3]);
$gigs = new gigs();
$rs_gigs = $gigs->uniq_gigs_list('gigs_title', $gigs_title);
$i = 0;
$data = mysql_fetch_array($rs_gigs);
$catagory = new catagory();
$rs_catagory = $catagory->uniq_catagory_list('catagory_id', $data['catagory_id']);
$data_catagory = mysql_fetch_array($rs_catagory);
$rs_cat_gigs = $gigs->uniq_gigs_list('catagory_id', $data['catagory_id']);
$rs_others_gigs = $gigs->uniq_gigs_list('user_id', $data['user_id']);
$rs_uniq_user = $user->uniq_user_list('user_id', $data['user_id']);
$data_uniq_user = mysql_fetch_array($rs_uniq_user);
if ($_REQUEST['gigs_title'] != '') {
    $gigs_title = $_REQUEST['gigs_title'];
}
if ($_REQUEST['submit']) {
    $gigs_title = $_REQUEST['gigs_title'];
    $gig_category_id = $_REQUEST['gig_category_id'];
    $gigs_title = $_REQUEST['gigs_description'];
}
?>
예제 #5
0
파일: catagory.php 프로젝트: mix376/biverr
<?php

include_once 'config/db_conn.php';
include_once 'db_config/db_gigs.php';
include_once 'db_config/db_catagory.php';
$catagory = new catagory();
$rs_catagory = $catagory->catagory_list();
if ($_REQUEST['id']) {
    $catagory->delete_list($_REQUEST['id']);
    reDirect('catagory.php');
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Orders - Admin</title>
<link rel="stylesheet" type="text/css" href="css/theme.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script>
   var StyleFile = "theme" + document.cookie.charAt(6) + ".css";
   document.writeln('<link rel="stylesheet" type="text/css" href="css/' + StyleFile + '">');
</script>
<script>
function confirmDelete(delUrl) {
  if (confirm("Are you sure you want to delete")) {
    document.location = delUrl;
  }
}
</script>
<!--[if IE]>