Beispiel #1
0
	count=0;
	 for (i=0 ; i<checkboxarray.length ; i++)
	 { 
	    if (document.getElementById(checkboxarray[i]).checked)
	   	count++;
	 }    

 if(count==0)
 wrongStatus(document.getElementById('servicecategory'),"Select at least one");
 else
 
}
</script>*/
if ($_GET['sid'] != "") {
    $objservice = new service();
    $service = $objservice->getbyid($_GET['sid']);
    if ($_SESSION['foongigs_userid'] != $service['userid']) {
        header("Location: index.php");
    }
    ?>
<div  style="width: 580px; margin-left: 50px;">
<h3 class="heading">Edit Service</h3>
<div style="float: right; padding-bottom: 0; margin-bottom: 0;">Not a member? please <a href="signup.php">sign up</a> first</div>
<form name="frmPostServices" method="post" onsubmit="if(validateForm(this)) startUpload('flashUpload');  return false;" action="ajax/service/editpostservice1.php">
<input type="hidden" name="serviceid" value="<?php 
    echo $_GET['sid'];
    ?>
">
<?php 
    include "post_login_form.php";
    ?>
Beispiel #2
0
<?php

include "header.php";
include "subheader.php";
require_once "common/class/mysql.class.php";
require_once "common/class/service.class.php";
$service = new service();
$service_data = $service->getbyid($_GET['id']);
//print_r($service_data);
$user = new user();
?>


<h3 class="heading">&nbsp;<?php 
echo $service_data['title'];
?>
 - Service</h3>
<div style="margin:3px 0 0 0;"><strong>Service ID:</strong> <?php 
echo $_GET['id'];
?>
</div>
<table border="0" class="tableDetails" width="100%">
 <tr height="20"></tr>
   <tr>
    <th>&nbsp;Title : </th> <td><b><?php 
echo $service_data['title'];
?>
</b></td> 
  </tr>
  <tr class="fir">
    <th>&nbsp;Posted On :</th> <td>&nbsp;<?php