<?php 
$communityid = isset($_POST['postvalue']) ? $_POST['postvalue'] : 0;
include_once $_SERVER['DOCUMENT_ROOT'] . "/eventconfig.php";
include_once CLASSFOLDER . "/dbconnection.php";
include_once CLASSFOLDER . "/communities.php";
$community = new communityclass($dbconnection->dbconnector);
include_once CLASSFOLDER . "/catalogs.php";
$catalog = new catalogclass($dbconnection->dbconnector);
include_once CLASSFOLDER . "/events.php";
$event = new eventclass($dbconnection->dbconnector);
$communitydata = !empty($communityid) ? $community->getcommunitybyid($communityid) : array();
$selectedState = !empty($communityid) ? $community->getSelectedState($communityid) : array();
$selectedZone = !empty($communityid) ? $community->getSelectedZone($communityid) : array();
$selectedEvents = !empty($communityid) ? $event->getSelectedEventByCommunityId($communityid) : array();
?>
 
  <form  id="update-communitydetails" name="update-communitydetails" action="" method="post" novalidate="novalidate">
    <input type="hidden" id="communityid" name="communityid" value="<?php 
echo !empty($communityid) ? $communityid : 0;
?>
" />
    <div class="box box-primary">
      <div class="box-body"> 
        <div class="row">
         <div class="form-group margin">
          <label><span class="text-error">*</span> Community Name</label>
          <input type="text"  id="eventname" name="name" value="<?php 
echo !empty($communitydata['name']) ? $communitydata['name'] : '';
?>
" maxlength="25" placeholder="Login Name" class="form-control" >
        </div>
<?php

include_once $_SERVER['DOCUMENT_ROOT'] . "/eventconfig.php";
session_start();
include_once CLASSFOLDER . "/common.php";
include_once CLASSFOLDER . "/catalogs.php";
$catalog = new catalogclass();
//ob_start("ob_gzhandler");
switch ($_POST['action']) {
    /*--------------------------------------------------------------*/
    case "getallcatalogvalues":
        $catalogmasterid = $_POST['catalogmasterid'];
        echo $catalog->getAllCatalogValuesByMasterId($catalogmasterid);
        break;
        /*--------------------------------------------------------------*/
    /*--------------------------------------------------------------*/
    case "showmngcatalogpaging":
        $rows = $_POST['rows'];
        $page = $_POST['page'];
        $obj = isset($_POST['searchObj']) ? json_decode($_POST['searchObj']) : null;
        echo $catalog->showManageCatalogs($page, $rows, $obj);
        break;
        /*--------------------------------------------------------------*/
    /*--------------------------------------------------------------*/
    case "savecatalogvalues":
        $catalogmasterid = $_POST['catalogmasterid'];
        $catalogmastername = $_POST['catalogmastername'];
        $description = $_POST['description'];
        $addedcatalogs = isset($_POST['addedcatalogs']) ? json_decode($_POST['addedcatalogs']) : null;
        $removedcatalogs = isset($_POST['removedcatalogs']) ? $_POST['removedcatalogs'] : null;
        $enabledcatalogs = isset($_POST['enabledcatalogs']) ? $_POST['enabledcatalogs'] : null;
示例#3
0
<?php

if (!isset($_SESSION)) {
    session_start();
}
include_once $_SERVER['DOCUMENT_ROOT'] . "/eventconfig.php";
include_once CLASSFOLDER . "/catalogs.php";
$catalog = new catalogclass();
$rows = 20;
$page = 0;
?>

<!--<script type="text/javascript" src="../scripts/catalogs.js"></script>-->
<div class="actionWizard">
<a onclick="getcontents('pages/configs/catalogs/addupdatecatalogs.php','content')" class="btn btn-primary pull-right btn-xs" title="Add New Catalog List"><i class="glyphicon  glyphicon-plus-sign"></i>New Catalog</a>
<a onclick="Toggledivshow('catalogsearchdiv');" class="btn  btn-primary pull-right btn-xs" title="Search"><i class="glyphicon  glyphicon-search"></i> Search</a>
</div>
<div id="gridcontent" class ="content">

<?php 
$searchobj = null;
echo $catalog->showManageCatalogs(0, $rows, $searchobj);
?>
     
</div>
<script src="scripts/catalogs.js" type="text/javascript"></script>

示例#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 
  <?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">
示例#6
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"> 
示例#7
0
 	<div class="row">
 		<div class="col-xs-12">
 			<div class="box">
 				<div class="box-header">
 					<h3 class="box-title">Community List</h3>
 					<a title="Create Community" class="btn btn-default pull-right btn-sm " href="javascript:void(0)" 
 					onclick="getcontents('pages/events/updatecommunities.php','content');" > <i class="glyphicon  glyphicon-plus-sign"></i>Add new community</a>
 				</div>	
 				<div class="box-body">
 					<div id="example2_wrapper" class="dataTables_wrapper form-inline" role="grid">
 						<?php 
$totlaCommunities = $community->getTotalCommunities(null);
if ($totlaCommunities > 0) {
    if ($totlaCommunities >= ($page - 1) * $rows) {
        include_once CLASSFOLDER . "/catalogs.php";
        $catalog = new catalogclass($dbconnection->dbconnector);
        $catalogArray = $catalog->GetAllCatalogValuesByMasterNames("State,Zone");
        $communitylist = $community->getallcommunityLists($page, $rows, null);
        ?>
	
 								<table id="communitytable" class="table table-bordered table-hover dataTable" aria-describedby="example2_info">
 									<thead><tr >
 										<th>Community Id</th>
 										<th>Name</th>
 										<th >States</th>
 										<th >Zones</th>
 										<th >Created On</th>											
 									</tr></thead> 
 									<?php 
        foreach ($communitylist as $rowdata) {
            ?>
示例#8
0
<?php

include_once $_SERVER['DOCUMENT_ROOT'] . "/eventconfig.php";
include_once CLASSFOLDER . "/dbconnection.php";
include_once CLASSFOLDER . "/catalogs.php";
$catalog = new catalogclass($dbconnection->dbconnector);
$rows = 20;
$page = 0;
?>

<!--<script type="text/javascript" src="../scripts/catalogs.js"></script>-->
<div id="gridcontent" class ="content">
	<div class="row">
		<div class="col-xs-12">
			<div class="box">
				<div class="box-header">
					<a onclick="getcontents('pages/configs/catalogs/addupdatecatalogs.php','content')" class="btn btn-default pull-right btn-sm " title="Add New Catalog List"><i class="glyphicon  glyphicon-plus-sign"></i>New Catalog</a>
					<a onclick="Toggledivshow('catalogsearchdiv');" class="btn btn-default pull-right btn-sm " title="Search"><i class="glyphicon  glyphicon-search"></i> Search</a>						<h3 class="box-title">Catalog List</h3>
				</div>
				<div class="box-body">
					<div id="example2_wrapper" class="dataTables_wrapper form-inline" role="grid">		
						<?php 
$searchobj = null;
$totalCatalogs = $catalog->getTotalCataolgs(null);
if ($totalCatalogs > 0) {
    if ($totalCatalogs >= ($page - 1) * $rows) {
        $catalolists = $catalog->GetAllCatalogList($page, $rows, null);
        ?>
	
								<table id="catalogtable" class="table table-bordered table-hover dataTable" aria-describedby="example2_info">
<?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>
示例#10
0
<?php

$serviceid = isset($_POST['postvalue']) ? $_POST['postvalue'] : null;
if (empty($vendor)) {
    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);
    $catalogArray = $catalog->GetAllCatalogValuesByMasterNames("State,Zone,City,Services,Service Category");
}
if (empty($service)) {
    $service = !empty($serviceid) ? $vendor->getvendorservicebyid($serviceid) : array();
}
if (empty($attachments)) {
    $attachments = !empty($serviceid) ? $vendor->getAllAttachmentsByEntityId($serviceid, VENDORSERVICE) : null;
}
?>
<div class="box box-primary">
  <div class="box-header">
    <h3 class="box-title"><?php 
echo !empty($service['title']) ? $service['title'] : '';
?>
</h3>
    <a href="javascript:void(0);"  onclick="deletelist('<?php 
echo $service['id'];
?>
')" class="btn btn-box-tool pull-right"><i class="fa fa-times"></i></a>  
    <a href="javascript:void(0);"  onclick="editlist('<?php 
echo $service['id'];
示例#11
0
<?php

if (!isset($_SESSION)) {
    session_start();
}
if (isset($_POST['postvalue'])) {
    $contactid = $_POST['postvalue'];
}
if (empty($vendor)) {
    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');
    $citycatalogs = $catalog->GetAllCatalogValues('City');
    $catalogArray = $catalog->GetAllCatalogValuesByMasterNames("City,State");
}
if (empty($contact)) {
    $contact = !empty($contactid) ? $vendor->getcontactsbyid($contactid) : array();
}
?>
<li class="li-edit" style="display:none" id="<?php 
echo $contact['id'];
?>
-edit">
          <div class="box box-primary">

            <div class="box-body"> 
              <form id="<?php 
<?php

if (!isset($_SESSION)) {
    session_start();
}
if (isset($_POST['postvalue'])) {
    $attachmentid = $_POST['postvalue'];
}
if (empty($vendorclass)) {
    include_once $_SERVER['DOCUMENT_ROOT'] . "/eventconfig.php";
    include_once CLASSFOLDER . "/dbconnection.php";
    include_once CLASSFOLDER . "/vendor.php";
    $vendorclass = new vendorclass($dbconnection->dbconnector);
    include_once CLASSFOLDER . "/catalogs.php";
    $catalog = new catalogclass($dbconnection->dbconnector);
    $catalogArray = $catalog->GetAllCatalogValuesByMasterNames("Services");
    $typeList = $vendorclass->AttachmentType->getlists();
}
if (empty($attachment)) {
    $attachment = !empty($attachmentid) ? $vendorclass->getvendorattachment($attachmentid) : array();
}
?>
<li class="li-edit" style="display:none" id="<?php 
echo $attachment['id'];
?>
-edit">
  <div class="box box-primary">

    <div class="box-body"> 
      <form id="<?php 
echo $attachment['id'];
示例#13
0
 	<div class="row">
 		<div class="col-xs-12">
 			<div class="box">
 				<div class="box-header">
 					<h3 class="box-title">Community List</h3>
 					<a title="Create Community" class="btn btn-default pull-right btn-sm " href="javascript:void(0)" 
 					onclick="getcontents('pages/events/updatecommunities.php','content');" > <i class="glyphicon  glyphicon-plus-sign"></i>Add new community</a>
 				</div>	
 				<div class="box-body">
 					<div id="example2_wrapper" class="dataTables_wrapper form-inline" role="grid">
 						<?php 
$totlaCommunities = $community->getTotalCommunities(null);
if ($totlaCommunities > 0) {
    if ($totlaCommunities >= ($page - 1) * $rows) {
        include_once CLASSFOLDER . "/catalogs.php";
        $catalog = new catalogclass($dbconnection->dbconnector);
        $catalogArray = $catalog->GetAllCatalogValuesByMasterNames("'State','Zone'");
        $communitylist = $community->getallcommunityLists($page, $rows, null);
        ?>
	
 								<table id="communitytable" class="table table-bordered table-hover dataTable" aria-describedby="example2_info">
 									<thead><tr >
 										<th>Community Id</th>
 										<th>Name</th>
 										<th >States</th>
 										<th >Zones</th>
 										<th >Created On</th>											
 									</tr></thead> 
 									<?php 
        foreach ($communitylist as $rowdata) {
            ?>
<?php

if (!isset($_SESSION)) {
    session_start();
}
if (isset($_POST['postvalue'])) {
    $portfolioid = $_POST['postvalue'];
}
if (empty($vendor)) {
    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);
    $catalogArray = $catalog->GetAllCatalogValuesByMasterNames("PortfolioType");
}
if (empty($portfolio)) {
    $portfolio = !empty($portfolioid) ? $vendor->getportfoliobyid($portfolioid) : array();
}
?>
<li class="li-edit" style="display:none" id="<?php 
echo $portfolio['id'];
?>
-edit">
          <div class="box box-primary">

            <div class="box-body"> 
              <form id="<?php 
echo $portfolio['id'];
?>
示例#15
0
if (!isset($_SESSION)) {
    session_start();
}
/*if(!isset($_SESSION['hpadminloginstatus']) || $_SESSION['hpadminloginstatus']!="HPAdminLoggedIn")
{
	include_once("login_again.php");
	exit();
}
$navactive="createuser";*/
//$access=$_SESSION['action_list'];
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);
$catalogArray = $catalog->GetAllCatalogValuesByMasterNames('City');
$searchObject = isset($_POST['postvalue']) ? $_POST['postvalue'] : null;
if (!empty($searchObject)) {
    $rows = $searchObject['rows'];
    $page = $searchObject['page'];
} else {
    $rows = 20;
    $page = 1;
}
?>

</script>
<div id="gridcontent" class ="content">
    <div class="row">
        <div class="col-xs-12">
示例#16
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);
$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) {
示例#17
0
 function GetAllCatalogValuesByMasterNames($masternames)
 {
     include_once CLASSFOLDER . "/catalogs.php";
     $catalog = new catalogclass($this->internalDB);
     return $catalog->GetAllCatalogValuesByMasterNames($masternames);
 }