Пример #1
0
 /**
  *	Форма фхода в админку
  * @access	protected
  */
 public function admin()
 {
     $args = request::get(array('user', 'secret'));
     $data = array('LC' => LC::get());
     try {
         if (!empty($args)) {
             authenticate::login();
         }
     } catch (Exception $e) {
         dbg::write($e->getMessage(), LOG_PATH . 'adm_access.log');
         $data['errors'] = $e->getMessage();
     }
     if (!authenticate::is_logged()) {
         $tmpl = new tmpl($this->pwd() . 'login.html');
         response::send($tmpl->parse($data), 'html');
     } else {
         response::redirect('/xxx/');
     }
 }
Пример #2
0
require_once '../../lib/defination.class.php';
require_once "../../lib/stock.class.php";
require_once '../../lib/defination.class.php';
include '../../lib/supplier.class.php';
include '../../lib/lc.class.php';
include '../../lib/lot.class.php';
//// Retrive Stock Group Name
$objStockGroupInfo = new Stock();
$stock = new Stock();
$StockGrpInfo = $objStockGroupInfo->retriveStockGroupUnderInfo();
$StockGrpInfo_options = options_for_select($StockGrpInfo, 'stock_group_name', 'stock_group_name', true);
//// Retrive Stock Unit Name
$unitName = options_for_select($stock->retriveStockUnit(), 'stock_item_unit_name', 'stock_item_unit_name', true);
$Supplier = new Supplier();
$outputSupplierItem = options_for_select($Supplier->retriveSupplierInfo(), 'sup_name', 'sup_name', true);
$LC = new LC();
$outputLC = options_for_select($LC->retriveLcInfo(), 'lc_name', 'lc_name', true);
$Lot = new Lot();
$outputLot = options_for_select($Lot->retriveLotInfo(), 'lot_name', 'lot_name', true);
$StockLocationInfo = $stock->retriveLocation();
$rowStockLocation = count($StockLocationInfo);
/////////////////////////////////
@session_start();
$user_level = $_SESSION[user_level];
?>

<div id="test">
<form  id="CreateStockItem" name="CreateStockItem" method="post"   action="includes/model/raw_item_actions.php"><table width="100%" border="0" cellspacing="2" cellpadding="2">
  <tr>
    <td>Name</td>
    <td><input name="stkName" type="text" class="inventori_txtfield" id="stkName"></td>
Пример #3
0
/** @global CDatabase $DB */
/** @var CBitrixComponentTemplate $this */
/** @var string $templateName */
/** @var string $templateFile */
/** @var string $templateFolder */
/** @var string $componentPath */
/** @var CBitrixComponent $component */
$this->setFrameMode(true);
?>
<?
    //D7 локализация
    use \Bitrix\Main\Localization\Loc as LC;
?>
<div class="news-list">
    <div class="block-title large container container-small"><?php 
echo LC::getMessage('CHARITY');
?>
</div>
    <?foreach($arResult["ITEMS"] as $arItem):?>
    <?
    $this->AddEditAction($arItem['ID'], $arItem['EDIT_LINK'], CIBlock::GetArrayByID($arItem["IBLOCK_ID"], "ELEMENT_EDIT"));
    $this->AddDeleteAction($arItem['ID'], $arItem['DELETE_LINK'], CIBlock::GetArrayByID($arItem["IBLOCK_ID"], "ELEMENT_DELETE"), array("CONFIRM" => GetMessage('CT_BNL_ELEMENT_DELETE_CONFIRM')));
    ?>
        <div class="news-item">
            <a class="container container-small item-link get-page-content" href="<?echo $arItem["DETAIL_PAGE_URL"]?>" data-href="<?echo $arItem["DETAIL_PAGE_URL"]?>?ajax=y">
                <div class="item-date x-small">
                    <?echo EditData($arItem["DISPLAY_ACTIVE_FROM"],$GLOBALS['lang'])?>
                </div>
                <div class="item-title x-big"><?echo $arItem["NAME"]?></div>
                <div class="item-anons"><?echo $arItem["PREVIEW_TEXT"];?></div>
            </a>
Пример #4
0
<?php

require_once "../../../lib/lc.class.php";
$objLcListAll = new LC();
if (isset($_POST['delete'])) {
    echo $id = (int) $_POST['id'];
    if ($objLcListAll->deleteLc($id) > 0) {
        echo "U have Deleted Succesfully";
    } else {
        echo "sorry record does not exists";
    }
}
Пример #5
0
$INST_R = array('instances_path' => array(), 'paths' => array(), 'paths_assoc' => array(), 'class_instance' => array());
foreach ($instances as $name) {
    $data = array('ui_path' => INSTANCES_PATH . $name . '/var/ui/', 'di_path' => INSTANCES_PATH . $name . '/var/di/', 'dump_path' => INSTANCES_PATH . $name . '/var/dump/', 'instance_name' => $name);
    $INST_R['instances_path'][] = $data;
    $INST_R['paths_assoc'][$name] = $data;
    $def_etc_file = INSTANCES_PATH . $name . '/etc/inst_' . $name . CONF_FEXT;
    $etc_file = CONF_ETC_PATH . 'inst_' . $name . CONF_FEXT;
    //9* init config files for instance
    if (file_exists($def_etc_file)) {
        include_once $def_etc_file;
    } elseif (file_exists($etc_file)) {
        include_once $etc_file;
    }
}
//9* end of instances configs
// NOTE: Include default localization file
include_once LOCALES_PATH . 'default.php';
// NOTE: Include localization file
$lc_file = LOCALES_PATH . LANG . '.' . ENCODING . '.php';
if (file_exists($lc_file)) {
    include_once $lc_file;
    // NOTE: Apply localization data
    LC::apply();
}
if (!function_exists('json_encode')) {
    if (!class_exists('Services_JSON')) {
        throw new Exception(LC::get_err('json_not_supported'));
    }
}
// NOTE: Include Switft Mail library
include_once LIB_PATH . 'Swift/swift_required.php';
Пример #6
0
<?php

require_once "../../../lib/lc.class.php";
$objLcListAll = new LC();
$LcListAll = $objLcListAll->retriveLcInfo();
$rowLcListAll = count($LcListAll);
?>


<table width="100%" border="0">
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td align="right"><a class="thickbox" href="includes/contents/create_lc.php?height=200&width=500" title="LC" >Back</a></td>
  </tr>
  <tr>
    <td width="140"><b>Count Name</b></td>
    <td width="57">&nbsp;</td>
    <td width="67">&nbsp;</td>
  </tr>
<?php 
for ($i = 0; $i < $rowLcListAll; $i++) {
    if ($i % 2 == 0) {
        $bgc = "#F7F7F7";
    } else {
        $bgc = "#F1F1F1";
    }
    ?>
  <tr id ="stk_<?php 
    echo $LcListAll["{$i}"]["lc_id"];
    ?>
Пример #7
0
 public static function apply()
 {
     global $LC_DATA;
     self::$DATA = self::merge(self::$DATA, $LC_DATA);
 }
Пример #8
0
 function showAction($id)
 {
     $lc = LC::find($id);
     //récupération du bateau d'id $id
     echo json_encode($lc);
 }
Пример #9
0
<?php

require_once "../../../lib/lc.class.php";
$lc_id = $_GET['lc_id'];
$objLcInfo = new LC();
$LcById = $objLcInfo->retriveLcById($lc_id);
$lc_name = $LcById[0]['lc_name'];
?>

<div id="note"> </div>				
<form id="lotForm" name="lotForm" method="post"   action="includes/model/lc_actions_update.php" >
     <?php 
require_once "../partials/_form_lc.php";
?>
        <div id="submit_set">
             <table width="100%" border="0" cellpadding="0" cellspacing="0">
               <tr>
                 <td align="right">&nbsp;</td>
                 <td>&nbsp;</td>
                 <td align="left">&nbsp;</td>
               </tr>
               <tr>
                 <td width="40%" align="right"><input type="hidden" name="lc_id" id="lc_id" value="<?php 
echo $lc_id;
?>
"/></td>
                 <td width="11%"><input class="button" name="Submit" type="submit" value="Update" id="Submit"/></td>
                 <td width="49%" align="left">&nbsp;</td>
               </tr>
            </table>
	      </div>
Пример #10
0
<?php

require_once "../../lib/lc.class.php";
$objLcInfo = new LC();
extract($_POST);
$lc_name = $_POST['lc_name'];
$lc_id = $_POST['lc_id'];
$objLcInfo->updateLc($lc_id, $lc_name);
echo "<b>Data Save Successsfull<b>";
?>
	
Пример #11
0
<?php

require_once "../../lib/lc.class.php";
$objLcInfo = new LC();
extract($_POST);
//get a new id
/////////////////////////////
$lc_name = $_POST['lc_name'];
$getData = "'','{$lc_name}'";
$objLcInfo->CreateLc($getData);
echo "<b>Data Save Successsfull</b>";
include '../contents/create_lc.php';