示例#1
0
 public function action_EditStatus()
 {
     PermissionHelper::Verification('Editor');
     $order_id = $_GET['id'];
     $model = StatusHelper::PopulateStatusViewModel($order_id);
     $this->view->generate('/Order/EditStatus_view.php', 'template_view.php', $model);
 }
示例#2
0
 public function run()
 {
     $sColumns = '';
     $sColumns .= '{ "mData": "name", "bSortable": true },';
     $sColumns .= '{ "mData": "compte", "bSortable": true, "className": "min-tablet", "sWidth": "80px" },';
     $sColumns .= '{ "mData": "authority", "bSortable": true, "className": "min-tablet", "sWidth": "100px" },';
     $sColumns .= '{ "mData": "playtime", "bSortable": true, "className": "min-desktop", "sWidth": "200px" },';
     $sColumns .= '{ "mData": "lastPlay", "bSortable": true, "className": "min-desktop", "sWidth": "120px" },';
     $sColumns .= '{ "mData": "status", "bSortable": true, "className": "text-center lineIcon min-desktop", "sWidth": "68px" },';
     $sColumns .= '{ "mData": "actions", "bSortable": false, "className": "all", "sWidth": "55px" },';
     $sFilterColumns = '';
     $sFilterColumns .= '{ type: "text", placeholder: "" },';
     $sFilterColumns .= '{ type: "text", placeholder: "" },';
     $sFilterColumns .= '{ type: "select", values: [' . \AuthorityHelper::getForDatatableSelect() . '] },';
     $sFilterColumns .= 'null,';
     $sFilterColumns .= '{ type: "date-range"},';
     $sFilterColumns .= '{ type: "select", values: [' . \StatusHelper::getForDatatableSelect(true) . '] },';
     $sFilterColumns .= 'null,';
     $this->arrayTemplate["dtColumns"] = rtrim($sColumns, ',');
     $this->arrayTemplate["dtFilterColumns"] = rtrim($sFilterColumns, ',');
     $this->arrayTemplate["ajaxSource"] = "pages/Admin/modules/GererEquipeJeu/ajax/listGererEquipeJeu.php?sEcho=1";
     $view = $this->template->render($this->arrayTemplate);
     $this->response->setContent($view);
     $this->response->send();
 }
示例#3
0
 public function run()
 {
     $sColumns = '';
     $sColumns .= '{ "mData": "name", "bSortable": true },';
     if ($this->HaveTheRight(\DroitsHelper::RECHERCHE_COMPTE)) {
         $sColumns .= '{ "mData": "compte", "bSortable": true, "className": "min-tablet", "sWidth": "80px" },';
     }
     $sColumns .= '{ "mData": "level", "bSortable": true, "sWidth": "50px" },';
     $sColumns .= '{ "mData": "yangs", "bSortable": true, "className": "min-desktop", "sWidth": "90px" },';
     $sColumns .= '{ "mData": "empire", "bSortable": true, "className": "text-center lineIcon min-tablet", "sWidth": "80px" },';
     $sColumns .= '{ "mData": "status", "bSortable": true, "className": "text-center lineIcon min-tablet", "sWidth": "68px" },';
     if ($this->HaveTheRight(\DroitsHelper::RECHERCHE_IP)) {
         $sColumns .= '{ "mData": "ip", "bSortable": true, "className": "min-desktop", "sWidth": "100px" },';
     }
     if ($this->HaveTheRight(\DroitsHelper::BANNISSEMENT)) {
         $sColumns .= '{ "mData": "actions", "bSortable": false, "className": "all", "sWidth": "40px" },';
     }
     $sFilterColumns = '';
     $sFilterColumns .= '{ type: "text", placeholder: "" },';
     if ($this->HaveTheRight(\DroitsHelper::RECHERCHE_COMPTE)) {
         $sFilterColumns .= '{ type: "text", placeholder: "" },';
     }
     $sFilterColumns .= '{ type: "text", placeholder: "" },';
     $sFilterColumns .= '{ type: "text", placeholder: "" },';
     $sFilterColumns .= '{ type: "select", values: [' . \EmpireHelper::getForDatatableSelect() . '] },';
     $sFilterColumns .= '{ type: "select", values: [' . \StatusHelper::getForDatatableSelect(true) . '], selected: "' . \StatusHelper::ACTIF . '" },';
     if ($this->HaveTheRight(\DroitsHelper::RECHERCHE_IP)) {
         $sFilterColumns .= '{ type: "text", placeholder: "" },';
     }
     if ($this->HaveTheRight(\DroitsHelper::BANNISSEMENT)) {
         $sFilterColumns .= 'null,';
     }
     $this->arrayTemplate["dtColumns"] = rtrim($sColumns, ',');
     $this->arrayTemplate["dtFilterColumns"] = rtrim($sFilterColumns, ',');
     $this->arrayTemplate["rightRechercheIp"] = $this->HaveTheRight(\DroitsHelper::RECHERCHE_IP);
     $this->arrayTemplate["rightRechercheCompte"] = $this->HaveTheRight(\DroitsHelper::RECHERCHE_COMPTE);
     $this->arrayTemplate["rightBannissement"] = $this->HaveTheRight(\DroitsHelper::BANNISSEMENT);
     $this->arrayTemplate["ajaxSource"] = "pages/Admin/ajax/listRecherchePlayer.php";
     $view = $this->template->render($this->arrayTemplate);
     $this->response->setContent($view);
     $this->response->send();
 }
示例#4
0
 public function run()
 {
     $sColumns = '';
     $sColumns .= '{ "mData": "name", "bSortable": true },';
     $sColumns .= '{ "mData": "chef", "bSortable": true },';
     $sColumns .= '{ "mData": "level", "bSortable": true, "className": "min-tablet", "sWidth": "50px" },';
     $sColumns .= '{ "mData": "scores", "bSortable": true, "sWidth": "50px" },';
     $sColumns .= '{ "mData": "empire", "bSortable": true, "className": "text-center lineIcon min-tablet", "sWidth": "80px" },';
     $sColumns .= '{ "mData": "status", "bSortable": true, "className": "text-center lineIcon min-tablet", "sWidth": "68px" },';
     $sFilterColumns = '';
     $sFilterColumns .= '{ type: "text", placeholder: "" },';
     $sFilterColumns .= '{ type: "text", placeholder: "" },';
     $sFilterColumns .= '{ type: "text", placeholder: "" },';
     $sFilterColumns .= '{ type: "text", placeholder: "" },';
     $sFilterColumns .= '{ type: "select", values: [' . \EmpireHelper::getForDatatableSelect() . '] },';
     $sFilterColumns .= '{ type: "select", values: [' . \StatusHelper::getForDatatableSelect(true) . '], selected: "' . \StatusHelper::ACTIF . '" },';
     $this->arrayTemplate["dtColumns"] = rtrim($sColumns, ',');
     $this->arrayTemplate["dtFilterColumns"] = rtrim($sFilterColumns, ',');
     $this->arrayTemplate["ajaxSource"] = "pages/Admin/ajax/listRechercheGuilde.php";
     $view = $this->template->render($this->arrayTemplate);
     $this->response->setContent($view);
     $this->response->send();
 }
示例#5
0
文件: template.php 项目: kudin/crm
                ?>
 ч.</p>
                                            <?php 
            } else {
                ?>
<p>Задача оценена по факту</p><?php 
            }
            ?>
                                            <a href="?action=calcAgr" class="btn btn-success" type="button">Принять оценку</a>
                                            <a href="?action=calcReject" class="btn btn-danger" type="button">Отклонить оценку</a> 
                                            <?php 
            break;
        default:
            ?>
                                            <p><?php 
            echo StatusHelper::getStr($arResult['STATUS']);
            ?>
</p>
                                            <?php 
            break;
    }
}
?>
                            </div> 
                        </div>  
                    </div>  
                </div>    
            </div>
            <?php 
include 'template_comments.php';
?>
示例#6
0
文件: template.php 项目: kudin/crm
    ?>
"><?php 
    echo $project['NAME'];
    ?>
</option>  
                            <?php 
}
?>
                    </select>
                </div>
            </div>
            <div class="fgroup">
                <div class="f1"><p>Статус: </p></div>
                <div class="f2"><select id="tasks_show" class="form-control"> 
                    <?php 
foreach (array('open' => 'Открытые', 'all' => 'Все', 'end' => 'Закрытые', false, 'nocalc' => 'Ожидают оценки', 'agrcalced' => StatusHelper::getStr(STATUS_LIST_AGR_CALCED), 'calcreject' => StatusHelper::getStr(STATUS_LIST_CALC_REJECT), 'calcagred' => 'Запущено в работу (оценка принята)', 'work' => StatusHelper::getStr(STATUS_LIST_WORK), 'pause' => 'В паузе', 'complete' => 'Готово (не закрытые)', 'reject' => 'Задача отклонена', false, 'short' => 'Короткие ( <4ч. )', 'norm' => 'Средние ( 4-16ч. )', 'long' => 'Большие ( >16ч. )') as $code => $value) {
    if (!$value) {
        ?>
<option disabled=""><?php 
        echo str_repeat('-', 20);
        ?>
</option>
                        <?php 
    } else {
        ?>
                            <option <?php 
        if ($code == $arResult['FILTER']) {
            ?>
 selected="selected" <?php 
        }
        ?>
示例#7
0
 static function findIconStatus($statut)
 {
     $iconElement = '<i data-tooltip-position="left" data-tooltip="' . StatusHelper::getLibelle($statut) . '" class="';
     if ($statut == StatusHelper::ACTIF) {
         $iconElement .= "text-green md-icon-done ";
     } else {
         if ($statut == StatusHelper::BANNI) {
             $iconElement .= "text-red md-icon-close ";
         } else {
             if ($statut == StatusHelper::NON_CONFIRME) {
                 $iconElement .= "text-warning md-icon-warning ";
             } else {
                 $iconElement .= "text-gray md-icon-help ";
             }
         }
     }
     $iconElement .= 'material-icons md-20"></i>';
     return $iconElement;
 }
示例#8
0
文件: component.php 项目: kudin/crm
                    $newStatus = STATUS_LIST_ACCEPT;
                }
                break;
            case 'getnewcalc':
                if ($arResult['STATUS'] == STATUS_LIST_CALC_REJECT) {
                    $newStatus = 0;
                }
                break;
            default:
                break;
        }
    }
    if (!is_null($newStatus)) {
        CIBlockElement::SetPropertyValuesEx($arParams['ID'], TASKS_IBLOCK_ID, array('STATUS' => $newStatus, 'STATUS_DATE' => date($DB->DateFormatToPHP(CSite::GetDateFormat("FULL")))));
        if (!in_array($newStatus, array(STATUS_LIST_PAUSE, STATUS_LIST_WORK))) {
            $logger->add(array($arResult['TASK']['PROPS']['CUSTOMER']['VALUE'], $arResult['TASK']['PROPS']['PROGRAMMER']['VALUE']), $arParams['ID'], 'status', StatusHelper::getStr($newStatus) . ' #' . $arResult['TASK']['ID'] . ' ' . $arResult['TASK']['NAME']);
        }
    }
    if ($commentStatus == STATUS_COMMENT_CONFIRM || $newStatus == STATUS_LIST_AGR_CALCED) {
        crmEntitiesHelper::recalcTaskTime($arParams['ID']);
    }
    LocalRedirect($APPLICATION->GetCurDir());
}
/* edit task */
$new_task = $_REQUEST["new_task"];
if ($arResult['CAN_EDIT'] && isset($new_task)) {
    $el = new CIBlockElement();
    $updated = $el->Update($arParams['ID'], array("DETAIL_TEXT" => $new_task, "NAME" => $_REQUEST['NAME_NEW']));
    if ($updated) {
        $propsUpdate['PRIORITY'] = validatePriority($_REQUEST['priority']);
        $calc = formatTime($_REQUEST['NEW_CALC']);
示例#9
0
文件: component.php 项目: kudin/crm
while ($ob = $res->GetNextElement()) {
    $arFields = $ob->GetFields();
    if (strlen($arFields["DATE_CREATE"]) > 0) {
        $arFields["DATE_CREATE"] = CIBlockFormatProperties::DateFormat($arParams['DATE_FORMAT'], MakeTimeStamp($arFields["DATE_CREATE"], CSite::GetDateFormat()));
    }
    $arFields['PROPERTIES'] = $ob->GetProperties();
    foreach (array('STATUS_DATE', 'COMMENT_DATE') as $code) {
        if (strlen($arFields['PROPERTIES'][$code]['VALUE']) > 0) {
            $arFields['PROPERTIES'][$code]['VALUE'] = CIBlockFormatProperties::DateFormat($arParams['DATE_TIME_FORMAT'], MakeTimeStamp($arFields['PROPERTIES'][$code]['VALUE'], CSite::GetDateFormat()));
        }
    }
    $arFields['NOT_VIEWED'] = $logger->isNotViewed($arFields['ID']);
    $arFields['NEW_COMMENTS'] = $logger->getNewCommentsCnt($arFields['ID']);
    $arFields['NEW_STATUS'] = $logger->getStatusField($arFields['ID']);
    $arFields['STATUS'] = $arFields['PROPERTIES']['STATUS']["VALUE_ENUM_ID"];
    $arFields['STATUS_TEXT'] = StatusHelper::getStr($arFields['STATUS']);
    $arResult['TASKS'][] = $arFields;
}
$arResult["NAV_STRING"] = $res->GetPageNavString();
$arResult['USER_ID'] = CUser::GetID();
/* statistic */
$arResult['ALL_TASK_TIME'] = $arResult['TASK_CNT'] = $arResult['ACCEPTED_TASK_TIME'] = $arResult['ACCEPTED_TASK_CNT'] = 0;
$statisticFilter['!PROPERTY_STATUS'] = STATUS_LIST_REJECT;
$res = CIBlockElement::GetList(array(), $statisticFilter, false, false, array("ID", "PROPERTY_CALC_COMMENTS", "PROPERTY_STATUS", "IBLOCK_ID", 'PROPERTY_TRACKING'));
while ($item = $res->Fetch()) {
    if ($item["PROPERTY_STATUS_ENUM_ID"] == STATUS_LIST_ACCEPT) {
        $arResult['ACCEPTED_TASK_CNT'] += 1;
    }
    $arResult['TRACKING_TASK_TIME'] += $item["PROPERTY_TRACKING_VALUE"];
    $arResult['ALL_TASK_TIME'] += $item["PROPERTY_CALC_COMMENTS_VALUE"];
    $arResult['TASK_CNT'] += 1;