Exemple #1
0
echo $div;
?>
            <div class="row">
                <div class="col-lg-12">
                    <div class="ibox float-e-margins">
                        <div class="ibox-title">
                            <h5>Edit Meta Information</h5>
                        </div>
                        <div class="ibox-content">
                            <form name="stationForm" id="stationForm" method="post" action="editMeta.php" class="form-horizontal">
                                <input type="hidden" name="call" id="call" value="loadMeta">
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">Select Station</label>
                                    <div class="col-sm-6">
                                        <?php 
echo DropDownUtils::getFoldersDropDownWithStationName($folders, "F_DropDown", "loadMeta()", $selSeq);
?>
                                    </div>
                                </div>
                            </form>
                            <hr>
                            <form name="frm1" method="post" action="editMeta.php" class="form-horizontal">
                                <input type="hidden" name="selectedFolderSeq" value="<?php 
echo $selSeq;
?>
" >
                                <input type="hidden" name="call" id="call" value="updateMeta">
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">Category</label>
                                    <div class="col-sm-6">
                                        <input class="form-control" name="category" type="text" size="50" value="<?php 
echo $user->getSeq();
?>
" />
                                        <input type="hidden" name="otherLocationSeqs" id="otherLocationSeqs" value="<?php 
echo $otherLocationSeqs;
?>
" />
                                        <input type="hidden" name="locSeq" id="locSeq" value="<?php 
echo $location->getSeq();
?>
" />
                                         <div class="form-group">
                                            <label class="col-sm-2 control-label">Location</label>
                                            <div class="col-sm-10">
                                                <?php 
echo DropDownUtils::getUserLocationsDropDown($seq, "l_DropDown", "", $locationSeq);
?>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-lg-2 control-label">Full Name</label>
                                            <div class="col-lg-10">
                                                <input type="text" name="fullName" placeholder="Full Name" required="required" value="<?php 
echo $user->getFullName();
?>
" class="form-control">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-lg-2 control-label">User Name</label>
                                            <div class="col-lg-10">
include "leftButtons.php";
?>
    
    <Div class="rightAdminPanel">
        <?php 
include "logOutButton.php";
?>
    
         
    <table width="80%" border="0">
      <tr>
     
        <td>
            Select Location :
            <?php 
echo DropDownUtils::getAllLocationsDropDown("l_DropDown", "populateRows(this.value)", $locationSeq);
?>
            

         </td> 
        </tr>
      <tr>
        <td class="ui-widget-header" style="padding:10px 10px 10px 10px;">List of Available Location Folders</td>
        </tr>
      <tr>
        <td class="ui-widget-content">
          <form name="folderForm" method="post" action="" > 
            <input type="hidden" name="editSeq" id="editSeq" />
               <input type="hidden" name="formAction" id="formAction" />
               <input type="hidden" name="isEnabled" id="isEnabled" />
               <input type="hidden" name="path" id="path" />  
" >
                      &nbsp;</td>
                  </tr>
                  <tr>
                    <td>Folder Details :</td>
                    <td><textarea name="details" id="details" cols="38" rows="4" ><?php 
echo $folder->getDetails();
?>
</textarea>
                      &nbsp;</td>
                  </tr>
                  <tr>
                    <td width="22%">Type :</td>
                    <td width="78%">
                        <?php 
echo DropDownUtils::getFolderTypeDropDown("s_DropDown", $folder->getStationType());
?>
                    </td>
                  </tr> 
                  <tr>
                    <td width="22%">M2MSite :</td>
                    <td width="78%">
                        <input name="isM2MSite" id="isM2MSite" <?php 
echo $m2MSiteChecked;
?>
 type="checkbox">
                        <span id="siteCodeSpan">
                            Site Code : <input name="siteCode" id="siteCode" <?php 
echo $siteCodeDisable;
?>
  type="text" size="10" value="<?php 
?>
            <div class="row">
                <div class="col-lg-12">
                    <div class="ibox float-e-margins">
                        <div class="ibox-title">
                            <h5>Edit Parameters</h5>
                        </div>
                        <div class="ibox-content">
                             <form name="form1" id="form1" method="post" action="editParameter.php">
                                <input type="hidden" name="call" id="call">
                                <div class="row">
                                     <div class="form-group">
                                        <label class="col-sm-1 control-label">Station</label>
                                        <div class="col-sm-11">
                                            <?php 
echo DropDownUtils::getFoldersDropDownWithStationName($folders, "F_DropDown", "editParameters()", $selSeq);
?>
                                        </div>
                                    </div>
                                </div>
                             </form>

                            <form name="chform" id="chform" method="post" action="editParameter.php" class="form-inline">
                                <input type="hidden" name="action" id="action">
                                <input type="hidden" name="selectedFolderSeq" value="<?php 
echo $selSeq;
?>
" >
                                <input type="hidden" name="delSeq" id = "delSeq">
                                <?php 
if (empty($channlConfigs)) {
        $isError = true;
    }
    if ($toDateForm == null) {
        $msg .= "Select To date<br>";
        $isError = true;
    }
    $fromDate = new DateTime($fromDateForm);
    $toDate = new DateTime($toDateForm);
    $toDate = $toDate->add(new DateInterval('P1D'));
    $fromDateStr = $fromDate->format("Y/m/d  H:i:s");
    $toDateStr = $toDate->format("Y/m/d  H:i:s");
    $remindersCount = $HVRRDS->FindByFolderFromToDate($folderSeq, $fromDateStr, $toDateStr);
    $logs = $HVRRDS->getHighValueReminderLogs($folderSeq, $fromDateStr, $toDateStr);
    $logs = json_encode($logs);
}
$folDDown = DropDownUtils::getFoldersDropDownWithStationName($folders, "folder", "", $folderSeq);
if (isset($_POST["call"]) && $_POST["call"] == "exportLogs") {
    $folderSeq = $_POST["folderSeq"];
    $fromDateForm = $_POST["fromDate"];
    $toDateForm = $_POST["toDate"];
    $fromDate = new DateTime($fromDateForm);
    $toDate = new DateTime($toDateForm);
    $toDate = $toDate->add(new DateInterval('P1D'));
    $fromDateStr = $fromDate->format("Y/m/d  H:i:s");
    $toDateStr = $toDate->format("Y/m/d  H:i:s");
    $HVRRDS = HighValueRuleReminderDataStore::getInstance();
    $logs = $HVRRDS->getHighValueReminderLogs($folderSeq, $fromDateStr, $toDateStr);
    ExportUtils::ExportData($logs);
}
?>
<!DOCTYPE html>
<!DOCTYPE html>
<html>
    <head>
        <?php 
include "_jsAdminInclude.php";
?>
        <?php 
include "../_InspiniaInclude.php";
?>
    </head>
    <body>
        <div id="wrapper">   
              <?php 
include "leftButtons.php";
$highValueRules = $HVRDS->FindByLocationSeq($locSeq);
$folDDown = DropDownUtils::getFoldersDropDownWithStationName($folders, "folder", "loadGrid(this.value)", '');
?>
              <div class="wrapper wrapper-content animated fadeInRight">
                <div class="row">
                    <div class="col-lg-12">
                        <div class="ibox float-e-margins">
                            <div class="ibox-title">
                                <h5>List of Available High Value Rules</h5>
                            </div>
                            <div class="ibox-content">
                                <form method="post" role="form" name="userForm" action="<?php 
echo $_SERVER['PHP_SELF'];
?>
" class="form-horizontal">
                                    <input type="hidden" name="locationSeq" id="locationSeq" value="<?php 
echo $locationSeq;
            <?php 
include "leftButtons.php";
$locSeq = $managerSession['locSeq'];
$FDS = FolderDataStore::getInstance();
$LDS = LocationDataStore::getInstance();
$CCDS = ChannelConfigurationDataStore::getInstance();
$locationSeqs = $LDS->FindLocationsByUser($managerSession["seq"]);
if (!in_array($locSeq, $locationSeqs)) {
    array_push($locationSeqs, $locSeq);
}
$folders = $FDS->FindByLocation(implode(",", $locationSeqs));
$folDDown = DropDownUtils::getFoldersDropDownWithStationName($folders, "folder", "changeStation()", $highValueRule->getFolderSeq());
$chDDown = "Select a Station to load Parameters";
if ($highValueRule->getParameter() != null) {
    $channelConfigs = $CCDS->FindByFolder($highValueRule->getFolderSeq());
    $chDDown = DropDownUtils::getChannelsDropDown($channelConfigs, "channelNames", "", $highValueRule->getParameter());
}
?>
            <div class="wrapper wrapper-content animated fadeInRight">
                <div class="row">
                    <div class="col-lg-12">
                        <div class="ibox float-e-margins">
                            <div class="ibox-title">
                                <h5>Create HighValue Rule</h5>
                            </div>  
                            <div class="ibox-content">
                                 <form name="frm1" method="post" action="<?php 
echo $_SERVER['PHP_SELF'];
?>
" class="form-horizontal">
                                 <input type="hidden" name="submit" value="submit"/>
" / >    
                <table width="100%" border="0" style="padding:10px 10px 10px 10px;">
                 <tr>
                    <td width="22%">Select Location:</td>
                    <td width="78%">
                        <?php 
echo DropDownUtils::getAllLocationsDropDown("locations", "", $user->getLocationSeq());
?>
                        
                    </td>
                  </tr>
                  <tr>
                    <td width="22%">Other Locations:</td>
                    <td width="78%">
                        <b> <?php 
echo DropDownUtils::getAllLocationsMultiDropDown("ol_DropDown", "", $user->getOtherLocationSeqs());
?>
</b> 
                    </td>
                  </tr>
                 <tr>
                    <td width="22%">Full Name :</td>
                    <td width="78%"><input name="fullName" type="text" value="<?php 
echo $user->getFullName();
?>
"  size="50"></td>
                  </tr>
                  <tr>
                    <td width="22%">User Name :</td>
                    <td width="78%"><input name="username" type="text" value="<?php 
echo $user->getUserName();
Exemple #10
0
       </tr>
      <tr>

        <td class="ui-widget-header" style="padding:10px 10px 10px 10px;">Edit Meta</td>
        </tr>
      <tr>
        <td class="ui-widget-content">
            <form name="frm1" method="post" action="editMeta.php">
                <table width="100%" border="0" style="padding:10px 10px 10px 10px;">

                  <tr>
                    <td width="22%">Select Folder</td>
                    <td width="78%">
                    
                        <?php 
echo DropDownUtils::getFoldersDropDownWithStationName($folders, "F_DropDown", "setLocation()", $selSeq);
?>
                          <input type="submit" name="submit" value="Edit">
                      &nbsp;</td>
                  </tr>
                  </table>
              </form>
         </td>
        </tr>
        <tr>
        <td class="ui-widget-content">
            <form name="frm1" method="post" action="editMeta.php">
                <input type="hidden" name="selectedFolderSeq" value="<?php 
echo $selSeq;
?>
" >
Exemple #11
0
                        <div class="ibox-content">
                            <form method="post" role="form" name="userForm" action="<?php 
echo $_SERVER['PHP_SELF'];
?>
" class="form-horizontal">
                                <input type="hidden" name="locationSeq" id="locationSeq" value="<?php 
echo $locationSeq;
?>
" /> 
                                <input type="hidden" name="editSeq" id="editSeq"/> 
                                <input type="hidden" name="call" id="call" /> 
                                <div class="form-group">
                                    <label class="col-sm-1 control-label">Location</label>
                                    <div class="col-sm-5">
                                        <?php 
echo DropDownUtils::getUserLocationsDropDown($seq, "l_DropDown", "loadGrid(this.value)", $locationSeq, "All Locations");
?>
                                    </div>
                                </div>
                                <div id="jqxgrid"></div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    </body>
</html>
<?php 
include "../_jqxGridInclude.php";