コード例 #1
0
ファイル: index.php プロジェクト: expressaffair/expressaffair
<?php

if (!isset($_SESSION)) {
    session_start();
}
if (isset($_POST['postvalue'])) {
    $vendorid = $_POST['postvalue'];
}
include_once $_SERVER['DOCUMENT_ROOT'] . "/eventconfig.php";
include_once CLASSFOLDER . "/dbconnection.php";
include_once CLASSFOLDER . "/vendor.php";
$vendor = new vendorclass($dbconnection->dbconnector);
include_once CLASSFOLDER . "/catalogs.php";
$catalog = new catalogclass($dbconnection->dbconnector);
$statecatalogs = $catalog->GetAllCatalogValues('State');
$zonecatalogs = $catalog->GetAllCatalogValues('Zone');
$locationcatalogs = $catalog->GetAllCatalogValues('City');
$servicecatalogs = $catalog->GetAllCatalogValues('Services');
$categoryCatalogs = $catalog->GetAllCatalogValues('Service Category');
if (!empty($statecatalogs) && count($statecatalogs) > 0) {
    foreach ($statecatalogs as $catalog) {
        $catalogArray[$catalog['id']] = $catalog['catalog_value'];
    }
}
if (!empty($zonecatalogs) && count($zonecatalogs) > 0) {
    foreach ($zonecatalogs as $catalog) {
        $catalogArray[$catalog['id']] = $catalog['catalog_value'];
    }
}
if (!empty($locationcatalogs) && count($locationcatalogs) > 0) {
    foreach ($locationcatalogs as $catalog) {
コード例 #2
0
echo isset($communitydata['iszone']) && $communitydata['iszone'] == 1 ? ' checked ' : '';
?>
   />
           State 
         </div>                      
       </div>
       <div class="col-lg-6" id="zonedropdown"  
       style="<?php 
echo isset($communitydata['iszone']) && $communitydata['iszone'] != 1 || !isset($communitydata['iszone']) ? '' : 'display:none';
?>
" >
       <div class="form-group margin">
         <label>Zone</label>         
         <select id="selectedzone" name="selectedzone[]" multiple="multiple" class="form-control">
           <?php 
$zoneCatalogs = $catalog->GetAllCatalogValues('Zone');
if (!empty($zoneCatalogs) && count($zoneCatalogs) > 0) {
    foreach ($zoneCatalogs as $zoneCatalog) {
        ?>
              <option value="<?php 
        echo $zoneCatalog['id'];
        ?>
"><?php 
        echo $zoneCatalog['catalog_value'];
        ?>
</option>
              <?php 
    }
}
?>
          </select>
コード例 #3
0
    case "getallCatalogValuesNamesForDropDown":
        $catalogmasterid = $_POST['catalogmasterid'];
        $catalogvalues = $catalog->getallCatalogValuesNames($catalogmasterid);
        echo '<option vlaue="">Select</option>';
        if (!empty($catalogvalues)) {
            foreach ($catalogvalues as $values) {
                echo '<option value="' . $values['catalog_value_id'] . '">' . $values['catalog_value_name'] . '</option>';
            }
        }
        break;
        /*--------------------------------------------------------------*/
    /*--------------------------------------------------------------*/
    case "getCatalogValuesByMasterName":
        $catalogmasterid = $_POST['catalogmasterid'];
        $catalogvalues = $catalog->getallCatalogValuesNames($catalogmasterid);
        echo '<option vlaue="">Select</option>';
        if (!empty($catalogvalues)) {
            foreach ($catalogvalues as $values) {
                echo '<option value="' . $values['catalog_value_id'] . '">' . $values['catalog_value_name'] . '</option>';
            }
        }
        break;
        /*--------------------------------------------------------------*/
    /*--------------------------------------------------------------*/
    case "getAllCatalogValues":
        $catalogmasterName = $_POST['masterName'];
        $catalogvalues = $catalog->GetAllCatalogValues($catalogmasterName);
        echo json_encode($catalogvalues);
        break;
        /*--------------------------------------------------------------*/
}
コード例 #4
0
<?php

if (empty($vendor)) {
    $vendorid = isset($_POST['postvalue']) ? $_POST['postvalue'] : null;
    include_once $_SERVER['DOCUMENT_ROOT'] . "/eventconfig.php";
    include_once CLASSFOLDER . "/dbconnection.php";
    include_once CLASSFOLDER . "/vendor.php";
    $vendor = new vendorclass($dbconnection->dbconnector);
    include_once CLASSFOLDER . "/catalogs.php";
    $catalog = new catalogclass($dbconnection->dbconnector);
    $citycatalogs = $catalog->GetAllCatalogValues('City');
    $statecatalogs = $catalog->GetAllCatalogValues('State');
    $vendordata = !empty($vendorid) ? $vendor->getvendorbyid($vendorid) : array();
    $catalogArray = array();
}
?>

<div>
  <ul class="list-container">
   <li class="li-edit" style="display:<?php 
echo !empty($vendordata) ? 'none' : '';
?>
">
    <div class="box box-primary">
      <div class="box-body"> 
        <form  id="update-vendorbasics" name="update-vendorbasics" class="form-horizontal" action="" method="post" novalidate="novalidate">
          <input type="hidden" id="vendorid" name="vendorid" value="<?php 
echo !empty($vendorid) ? $vendorid : 0;
?>
" />
          <input type="hidden" id="entityid" name="entityid" value="<?php 
コード例 #5
0
          <?php 
if (!isset($_SESSION)) {
    session_start();
}
if (isset($_POST['postvalue'])) {
    $vendorid = $_POST['postvalue'];
}
include_once $_SERVER['DOCUMENT_ROOT'] . "/eventconfig.php";
include_once CLASSFOLDER . "/dbconnection.php";
include_once CLASSFOLDER . "/vendor.php";
$vendor = new vendorclass($dbconnection->dbconnector);
include_once CLASSFOLDER . "/catalogs.php";
$catalog = new catalogclass($dbconnection->dbconnector);
$locationcatalogs = $catalog->GetAllCatalogValues('Location');
$vendordata = !empty($vendorid) ? $vendor->getvendorbyid($vendorid) : array();
?>
          <style type="text/css">
            #update-vendorbasics .form-group label.error {
              color: #FB3A3A;
              display: inline-block;   
              text-align: left;    
            }
          </style>
          
          <form  id="update-vendorbasics" name="update-vendorbasics" action="" method="post" novalidate="novalidate">
            <input type="hidden" id="vendor_id" name="vendor_id" value="<?php 
echo !empty($vendorid) ? $vendorid : 0;
?>
" />
            <div class="box box-primary">
              <div class="box-body"> 
コード例 #6
0
  <?php 
if (!isset($_SESSION)) {
    session_start();
}
$eventid = isset($_POST['postvalue']) ? $_POST['postvalue'] : 0;
include_once $_SERVER['DOCUMENT_ROOT'] . "/eventconfig.php";
include_once CLASSFOLDER . "/dbconnection.php";
include_once CLASSFOLDER . "/events.php";
$event = new eventclass($dbconnection->dbconnector);
$eventdata = !empty($eventid) ? $event->geteventbyid($eventid) : array();
include_once CLASSFOLDER . "/rituals.php";
$rituals = new ritualclass($dbconnection->dbconnector);
$ritualtitles = $rituals->getAllRitualNames();
include_once CLASSFOLDER . "/catalogs.php";
$catalog = new catalogclass($dbconnection->dbconnector);
$servicecatalogs = $catalog->GetAllCatalogValues('Services');
$attachments = !empty($eventid) ? $event->getAllEventAttachments($eventid) : null;
?>
  <link href="plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css" rel="stylesheet" type="text/css" />
  <form  id="update-eventdetails" name="update-eventdetails" action="" method="post" novalidate="novalidate">
    <input type="hidden" id="eventid" name="eventid" value="<?php 
echo !empty($eventid) ? $eventid : 0;
?>
" />
    <div class="box box-primary">
      <div class="box-body"> 
        <div class="row">
          <div class="col-lg-6">
            <div class="row">
              <div class="col-lg-12">
                <div class="form-group margin">
コード例 #7
0
<?php

if (!isset($_SESSION)) {
    session_start();
}
if (isset($_POST['postvalue'])) {
    $vendorid = $_POST['postvalue'];
}
include_once $_SERVER['DOCUMENT_ROOT'] . "/eventconfig.php";
include_once CLASSFOLDER . "/dbconnection.php";
include_once CLASSFOLDER . "/vendor.php";
$vendor = new vendorclass($dbconnection->dbconnector);
include_once CLASSFOLDER . "/catalogs.php";
$catalog = new catalogclass($dbconnection->dbconnector);
$locationcatalogs = $catalog->GetAllCatalogValues('City');
$vendordata = !empty($vendorid) ? $vendor->getvendorbyid($vendorid) : array();
?>

<div>
  <ul class="list-container">
    <li class="li-view" style="display:<?php 
echo empty($vendordata) ? 'none' : '';
?>
">

      <div class="box box-primary">
        <div class="box-header">
          <h3 class="box-title"><?php 
echo !empty($vendordata['title']) ? $vendordata['title'] : '';
?>
</h3>
コード例 #8
0
 function GetCatalogValuesByMasterName($masternames)
 {
     include_once CLASSFOLDER . "/catalogs.php";
     $catalog = new catalogclass($this->internalDB);
     return $catalog->GetAllCatalogValues($masternames);
 }