当前位置: 首页>>代码示例>>PHP>>正文


PHP ST::setVarPhptoJS方法代码示例

本文整理汇总了PHP中ST::setVarPhptoJS方法的典型用法代码示例。如果您正苦于以下问题:PHP ST::setVarPhptoJS方法的具体用法?PHP ST::setVarPhptoJS怎么用?PHP ST::setVarPhptoJS使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ST的用法示例。


在下文中一共展示了ST::setVarPhptoJS方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: MenuChanger

 static function MenuChanger()
 {
     if (Auth::isAdmin(App::$instance)) {
         ST::deployTemplate('menus/admin.inc');
     } else {
         ST::deployTemplate('menus/user.inc');
     }
     //под меню добавить слушателя сообщений
     ExceptionHandler::messageException();
     //выдать путь для js, $init должен быть инициирован выше
     ST::setVarPhptoJS(App::$instance->opt->appHttpPath, "appHttpPath");
 }
开发者ID:inilotic,项目名称:vks_nodes_core,代码行数:12,代码来源:RenderEngine.class.php

示例2:

<?php

ST::deployTemplate('heads/ui_timepicker.inc');
ST::setVarPhptoJS(AttendanceNew_controller::makeStackName(STACK_MULTIPLY), 'stackMultiName');
ST::setVarPhptoJS(1000, 'stackMultiCapacity');
RenderEngine::MenuChanger();
?>

<div class="container" xmlns="http://www.w3.org/1999/html">
    <div class="col-md-3">
        <div id="blocked-time-list" class="hidden">

        </div>
        <div id="selected-time-list" class="hidden">

        </div>
    </div>
    <div class="col-md-7 left-border">
        <h4 class="text-muted heading-main">Упрощенная заявка на проведение ВКС</h4>
        <hr>
        <form id="form1" class="form-horizontal" name="form1" method="post" action="?route=Vks/storeSimple">
            <?php 
echo Token::castTokenField();
?>

            <div class="form-group">
                <label class="control-label col-lg-4">
                    Дата:
                </label>

                <div class="col-lg-3">
开发者ID:inilotic,项目名称:vks_nodes_core,代码行数:31,代码来源:createSimple.php

示例3:

<?php

include_once CORE_REPOSITORY_REAL_PATH . "views/main.php";
ST::setVarPhptoJS(HTTP_PATH, 'core_http_path');
ST::setUserJs("vks/calendar.js");
?>
</div>
<div class="container-fluid">
    <?php 
include_once CORE_REPOSITORY_REAL_PATH . "views/pleaseEnter.php";
?>
</div>
<div class="container">

    <div class="clearfix"></div>
    <div id='calendar' style="min-height: 640px; margin-top: 25px;"></div>
    <div style='clear:both'></div>
    <div style="margin-top: 1.9em;">
        &nbsp
    </div>
    <?php 
ST::deployTemplate('footer/closeContainer.inc');
?>
    <div class="container100">
        <?php 
ST::deployTemplate('footer/mainFooter.inc');
?>
    </div>


    <script>
开发者ID:inilotic,项目名称:vks_nodes_core,代码行数:31,代码来源:calendar.php

示例4: function

<?php

include_once CORE_REPOSITORY_REAL_PATH . "views/main-fluid.php";
ST::setVarPhptoJS($date, 'currentDate');
//dump($vkses);
?>
<script>
    $(document).ready(function () {
        $('#btn_another_date').click(function ()
        {
            $('#dp_another_date').datepicker();
            $('#dp_another_date').datepicker("show");
        });
        $(document).on('change','#dp_another_date', function() {
            location.href = '?route=Vks/index/'+$(this).val();
        })

    })
</script>
<div class="col-lg-12">
    <h3 class="text-center"><input class="hidden" id="dp_another_date" disabled/><button type="button" class="btn btn-info btn-sm pull-left" id="btn_another_date">Другая дата</button>Список ВКС на <b><?php 
echo $date;
?>
</b>
        <div class="btn-group pull-right">
            <a class="btn btn-default btn-sm" href="<?php 
echo ST::route('Vks/day/' . date_create($date)->format("Y-m-d"));
?>
">
                К графику</a>
            <a class="btn btn-default btn-sm" href="<?php 
开发者ID:inilotic,项目名称:vks_nodes_core,代码行数:31,代码来源:index.php

示例5: instantShow

 public function instantShow($message)
 {
     ST::setVarPhptoJS($message, 'message');
     echo "\n             <script>\n            \$(document).ready(function() {\n                \$.fancybox({\n                'width': 720,\n                'autoSize': false,\n                'height': 'auto',\n                'content': message\n            });\n            })\n            </script>";
 }
开发者ID:inilotic,项目名称:vks_nodes_core,代码行数:5,代码来源:ModalWindow_controller.php

示例6: function

<?php

include_once CORE_REPOSITORY_REAL_PATH . "views/main-fluid.php";
//timed_array
ST::setVarPhptoJS($date, 'date');
ST::setVarPhptoJS($attendance->id, 'requested_participant_id');
ST::setUserJs("vks/showAtParticipant_calendar.js");
ST::setUserJs("attendance/tree.js");
ST::setUserCss("attendance/tree.css");
$resuested_att = $attendance;
?>
<script>
    $(document).ready(function () {
        $(".date-pick").datepicker({
            defaultDate: date,
            dateFormat: "yy-mm-dd",
            onSelect: function (date) {
                location.href = "<?php 
echo App::$instance->opt->appHttpPath;
?>
?route=AttendanceNew/showSchedule/0/" + date + "/" + requested_participant_id;
            },
        });
        //autocomplete handler
        $(document).on('click', '#founded_results_attendance li', function () {
            var $this = $(this);
            location.href = "<?php 
echo App::$instance->opt->appHttpPath;
?>
?route=AttendanceNew/showSchedule/0/" + date + "/" + $this.data('id');
        })
开发者ID:inilotic,项目名称:vks_nodes_core,代码行数:31,代码来源:schedule_list.php

示例7: Select2Assert

<?php

ST::deployTemplate('heads/ui_timepicker.inc');
ST::setVarPhptoJS("vks_participants_edit", "formCookieParticipantsName", true, true, true);
$p = new Select2Assert();
$p->init();
ST::setUserJs('users/search.js');
RenderEngine::MenuChanger();
//is edit page
ST::setVarPhptoJS(true, "editLogic");
?>
<script>
    $(document).ready(function () {
        $(document).on("click", ".remove_line", function () {
            if (confirm('Удалить код?'))
                $(this).parent().parent().parent().parent().remove();
        })
    })
</script>
<div class="container" xmlns="http://www.w3.org/1999/html">
    <div class="col-lg-6 text-left text-muted"><h4>ВКС #<?php 
echo $vks->id;
?>
 Режим редактирования (Вид Администратора)</h4>
    </div>
    <div class="col-lg-6 text-right text-muted">
        <?php 
include_once CORE_REPOSITORY_REAL_PATH . "views/vks/tpl/_action_menu.php";
?>
    </div>
    <div class="col-lg-12">
开发者ID:inilotic,项目名称:vks_nodes_core,代码行数:31,代码来源:edit.php

示例8:

<?php

ST::deployTemplate('heads/ui_timepicker.inc');
RenderEngine::MenuChanger();
ST::setUserCss('render-vks.css');
ST::setUserJs('users/core.js');
ST::setUserCss('users/lk.css');
ST::setUserJs('users/core.js');
//dump($vksList);
ST::setVarPhptoJS(HTTP_PATH, 'core_http_path');
ST::setVarPhptoJS(HTTP_BASE_PATH, 'base_http_path');
?>
<div class="container-fluid">
    <div class="col-md-12">
        <h3 class="text-success">Мои видеоконференции</h3>

        <div class="lk-menu">
            <h4>
                <span class="text-muted">Показать:</span>
                <?php 
if ($filter != 'all') {
    ?>
                    <a href="<?php 
    echo ST::route("Lk/show/all");
    ?>
" class="lk-menu-item menu-span like-href">Все</a>
                <?php 
} else {
    ?>
                    <span class="lk-menu-item menu-span text-warning">Все</span>
                <?php 
开发者ID:inilotic,项目名称:vks_nodes_core,代码行数:31,代码来源:index.php

示例9: FlotGraphAssert

<?php

include_once CORE_REPOSITORY_REAL_PATH . "views/main-fluid.php";
$vks = (object) $data['vks'];
ST::setUserJs('vks/approve/core.js');
ST::setVarPhptoJS($vks->id, 'vksId');
$p = new ParticipationsV3Assert();
$p->init();
$asrt = new FlotGraphAssert();
$asrt->init();
ST::setUserJs('codes/askFreeCodes.js');
?>
<script type='text/javascript'>
    <?php 
echo "var plotTicks = " . json_encode($graph->plotTicks) . ";\n";
echo "var randomData = " . json_encode($graph->data) . ";\n";
echo "var thresholdCou = " . json_encode($graph->threshold) . ";\n";
?>
</script>

<script>
    $(document).ready(function () {
        $(document).on('click', '.points_check_where_admin_page', function () {
            dateTimeforCheck = [];
            var coreDT = {
                'date': $(this).data("date"),
                'start_time': $(this).data("start"),
                'end_time': $(this).data("end")
            };

            dateTimeforCheck.push(coreDT);
开发者ID:inilotic,项目名称:vks_nodes_core,代码行数:31,代码来源:approvePage.php

示例10: function

<?php

ST::deployTemplate('heads/ui_timepicker.inc');
RenderEngine::MenuChanger();
ST::setVarPhptoJS($origVks['id'], 'vksId');
//dump($origVks);
?>
<script>
    $(document).ready(function () {
        $(document).on("change", '.version', function () {
            location.href = "?route=VksVersion/compare/" + vksId + "/" + $("#v1").val() + "/" + $("#v2").val();
        })
    })

</script>
<div class="container">
    <div class="col-lg-6 text-left text-muted"><h4>ВКС #<?php 
echo $origVks['id'];
?>
</h4>
    </div>
    <div class="col-lg-6 text-right text-muted"><h4>Режим сравнения версий</h4>
    </div>
    <div class="col-lg-12">
        <hr>
    </div>
    <div class="col-lg-12 text-left text-muted ">
        <table class="table table-hover table-striped">
            <th></th>
            <th>
                <h4>Версия
开发者ID:inilotic,项目名称:vks_nodes_core,代码行数:31,代码来源:compare.php

示例11: foreach

<?php

ST::deployTemplate('heads/ui_timepicker.inc');
ST::setVarPhptoJS("vks_participants_edit", "formCookieParticipantsName", true, true, true);
RenderEngine::MenuChanger();
?>
<div class="container">
    <div class="col-lg-12 text-right">
        <h4 class="text-muted">Редактировать заявку на ВКС</h4><hr>
    </div>
    <div class="col-lg-3">
        <div id="blocked-time-list" class="hidden"></div>
        <div class="alert alert-danger">Любые изменения в заявке согласовываются с администорами (ВКС получает статус "Согласование")
        </div>
        <div class="alert alert-info">Текущий статус заявки: <?php 
echo $vks->humanized->status_label;
?>
        </div>
        <div class="panel panel-default">
            <div class="panel-heading">
                Коды подключения к ВКС
            </div>
            <div class="panel-body">
                <?php 
if (isset($vks->connection_codes) && $vks->status == VKS_STATUS_APPROVED) {
    ?>
                    <?php 
    if (count($vks->connection_codes)) {
        ?>
                        <?php 
        foreach ($vks->connection_codes as $code) {
开发者ID:inilotic,项目名称:vks_nodes_core,代码行数:31,代码来源:edit-ws.php


注:本文中的ST::setVarPhptoJS方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。