Beispiel #1
0
<?php

include_once 'config/db_conn.php';
include_once 'db_config/db_gigs.php';
include_once 'db_config/db_admin.php';
$admin = new admin();
$rs_user = $admin->admin_list();
if ($_REQUEST['id']) {
    $user->delete($_REQUEST['id']);
    reDirect('admin_users.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]>
Beispiel #2
0
<?php

session_start();
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_admin.php';
$admin = new admin();
$rs_admin = $admin->admin_list();
$data_admin = mysql_fetch_array($rs_admin);
$data_admin['user_email'];
if ($_REQUEST['submit']) {
    ###############################################################
    /*Mail Part */
    ###############################################################
    $to_mail = $data_admin['user_email'];
    $subject = $_REQUEST['subject'];
    $mail_table = '
				<table width="600" border="0">
				  
				  <tr>
					<td width="94" align="left">Message</td>
					<td width="13" align="left">:</td>
					<td width="479" align="center">' . $_REQUEST['message'] . '</td>
				  </tr>
				  <tr>
					<td width="94" align="left">Order</td>
				    <td width="13" align="left">:</td>
				    <td width="479" align="left">' . $_REQUEST['order_id'] . '</td>
				  </tr>
				  <tr>