• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP twig_lower_filter函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中twig_lower_filter函数的典型用法代码示例。如果您正苦于以下问题:PHP twig_lower_filter函数的具体用法?PHP twig_lower_filter怎么用?PHP twig_lower_filter使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



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

示例1: block_body_class

 public function block_body_class($context, array $blocks = array())
 {
     $__internal_1f8fe57c9243b33b9661d0ff6641def4e34392b495fa93fa708ca3fdc0ebf9c4 = $this->env->getExtension("native_profiler");
     $__internal_1f8fe57c9243b33b9661d0ff6641def4e34392b495fa93fa708ca3fdc0ebf9c4->enter($__internal_1f8fe57c9243b33b9661d0ff6641def4e34392b495fa93fa708ca3fdc0ebf9c4_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "body_class"));
     echo twig_escape_filter($this->env, "new new-" . twig_lower_filter($this->env, $this->getAttribute(isset($context["_entity_config"]) ? $context["_entity_config"] : $this->getContext($context, "_entity_config"), "name", array())), "html", null, true);
     $__internal_1f8fe57c9243b33b9661d0ff6641def4e34392b495fa93fa708ca3fdc0ebf9c4->leave($__internal_1f8fe57c9243b33b9661d0ff6641def4e34392b495fa93fa708ca3fdc0ebf9c4_prof);
 }
开发者ID:karolskora1993,项目名称:strona-przedszkola,代码行数:7,代码来源:85a70e592a4609e0ef43c9bb632ae90e00efcba26fed6ba30174dad0aaab530d.php


示例2: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<script>\n    var \$table = \$('#table');\n    var extendColData = [];\n    var initResponse;\n\n    \$(document).ready(function () {\n        \$(\"#tableDiv\").show();\n        iniFillTableData();\n    });\n\n    function sortMyUsername(initResponse) {\n        var jsonString = JSON.parse(initResponse);\n        var filterUsers = [];\n        \n        var name = '";
     // line 15
     echo twig_escape_filter($this->env, twig_lower_filter($this->env, isset($context["name"]) ? $context["name"] : $this->getContext($context, "name")), "html", null, true);
     echo "';\n        for (var i = 0; i < jsonString.users.length; i++) {\n            var tempUser = jsonString.users[i];\n            if (name.toLowerCase() === tempUser.username.toLowerCase()) {\n                filterUsers.push(tempUser);\n            }\n        }\n        for (var i = 0; i < jsonString.users.length; i++) {\n            var tempUser = jsonString.users[i];\n            if (name.toLowerCase() !== tempUser.username.toLowerCase()) {\n                filterUsers.push(tempUser);\n            }\n        }\n        var filterOpportunitiesArray = {'users': filterUsers};\n        var jsonStr = JSON.stringify(filterOpportunitiesArray);\n        return jsonStr;\n    }\n\n    function iniFillTableData() {\n        \$table.bootstrapTable('showLoading');\n        var data = '";
     // line 35
     echo twig_escape_filter($this->env, isset($context["userArray"]) ? $context["userArray"] : $this->getContext($context, "userArray"), "html", null, true);
     echo "';\n        var newString = data.replace(/&quot;/g, '\"');\n        initResponse = newString;\n        //var newString = JSON.parse(data);\n        \$table.bootstrapTable('hideLoading');\n        \$table.bootstrapTable('append', convertData(sortMyUsername(newString)));\n    }\n\n    function refreshTable() {\n        \$table.bootstrapTable('removeAll');\n        fillTableData();\n    }\n\n    function fillTableData() {\n        \$table.bootstrapTable('showLoading');\n        \$.post('";
     // line 50
     echo $this->env->getExtension('routing')->getPath("login_login_userTableData");
     echo "', null,\n                function (response) {\n                    if (response) {\n                        \$table.bootstrapTable('hideLoading');\n                        \$table.bootstrapTable('append', convertData(sortMyUsername(response)));\n                    } else {\n\n                    }\n                }\n        );\n    }\n    \n    function storePageSize(size) {\n        \$.post('";
     // line 63
     echo $this->env->getExtension('routing')->getPath("login_login_saveconfig");
     echo "',\n                {name: 'userview', value: size},\n        function (response) {\n            if (response !== \"false\") {\n\n            } else {\n                console.log(\"error occured in getting the manage view number in contacts\", response);\n            }\n        });\n    }\n\n    function checkAndSetValue(value, blankValue, scale, pre) {\n        if (value === '' || value === null) {\n            return blankValue;\n        } else {\n            if (pre === true) {\n                return scale + '' + value;\n            } else {\n                return value + '' + scale;\n            }\n        }\n    }\n\n    function detailFormatter(index, row) {\n\n        var title = checkAndSetValue(row.title, '-', '', true);\n        var company = checkAndSetValue(row.company, '-', '', true);\n        var email = checkAndSetValue(row.email, '-', '', true);\n        var telephone = checkAndSetValue(row.telephone, '-', '', true);\n        var cellphone = checkAndSetValue(row.cellphone, '-', '', true);\n\n        var originator = checkAndSetValue(row.originator, '-', '%', false);\n        var nonOriginator = checkAndSetValue(row.nonOriginator, '-', '%', false);\n        var earningGoals = checkAndSetValue(row.earningGoals, '-', '\$', true);\n        var drawAgainstCommission = checkAndSetValue(row.drawAgainstCommission, '-', '\$', true);\n        var dob = checkAndSetValue(row.dob, '-', '', true);\n\n        if (dob !== '-') {\n            var mdate = new Date(dob);\n            var month = 1;\n            if ((mdate.getMonth() + 1) < 10) {\n                month = '0' + (mdate.getMonth() + 1);\n            } else {\n                month = mdate.getMonth() + 1;\n            }\n            var day = 1;\n            if ((mdate.getDate()) < 10) {\n                day = '0' + (mdate.getDate());\n            } else {\n                day = mdate.getDate();\n            }\n            var dob = month + '/' + day + '/' + mdate.getFullYear();\n        }\n\n        var html = [];\n        html.push('<div class\"row\">' +\n                '<div class=\"col-xs-4\">' +\n                '<table class=\"table\" style=\"margin-left:42px; border: none !important;line-height: 5px;background-color: #fbfbfb;\">' +\n                '<tr style=\"padding:0px;margin:0px;\">' +\n                '<td style=\"border: none !important;line-height: 5px;width:30%\"><small>Title</small></td>' +\n                '<td style=\"border: none !important;line-height: 5px;\"><small>' + title + '</small></td>' +\n                '</tr>' +\n                '<tr style=\"padding:0px;margin:0px;\">' +\n                '<td style=\"border: none !important;line-height: 5px;\"><small>Company</small></td>' +\n                '<td style=\"border: none !important;line-height: 5px;\"><small>' + company + '</small></td>' +\n                '</tr>' +\n                '<tr style=\"padding:0px;margin:0px;\">' +\n                '<td style=\"border: none !important;line-height: 5px;\"><small>Email</small></td>' +\n                '<td style=\"border: none !important;line-height: 5px;\"><small>' + email + '</small></td>' +\n                '</tr>' +\n                '<tr style=\"padding:0px;margin:0px;\">' +\n                '<td style=\"border: none !important;line-height: 5px;\"><small>Telephone</small></td>' +\n                '<td style=\"border: none !important;line-height: 5px;\"><small>' + telephone + '</small></td>' +\n                '</tr>' +\n                '<tr style=\"padding:0px;margin:0px;\">' +\n                '<td style=\"border: none !important;line-height: 5px;\"><small>Cell Phone</small></td>' +\n                '<td style=\"border: none !important;line-height: 5px;\"><small>' + cellphone + '</small></td>' +\n                '</tr>' +\n                '</table>' +\n                '</div>' +\n                '<div class=\"col-xs-4\">' +\n                '<table class=\"table\" style=\"margin-left:22px; border: none !important;line-height: 5px;background-color: #fbfbfb;\">' +\n                '<tr style=\"padding:0px;margin:0px;\">' +\n                '<td style=\"border: none !important;line-height: 5px;width:60%\"><small>Commissions Originator</small></td>' +\n                '<td style=\"border: none !important;line-height: 5px;\"><small>' + originator + '</small></td>' +\n                '</tr>' +\n                '<tr style=\"padding:0px;margin:0px;\">' +\n                '<td style=\"border: none !important;line-height: 5px;\"><small>Commissions Non-Originator</small></td>' +\n                '<td style=\"border: none !important;line-height: 5px;\"><small>' + nonOriginator + '</small></td>' +\n                '</tr>' +\n                '<tr style=\"padding:0px;margin:0px;\">' +\n                '<td style=\"border: none !important;line-height: 5px;\"><small>Earning Goals</small></td>' +\n                '<td style=\"border: none !important;line-height: 5px;\"><small>' + earningGoals + '</small></td>' +\n                '</tr>' +\n                '<tr style=\"padding:0px;margin:0px;\">' +\n                '<td style=\"border: none !important;line-height: 5px;\"><small>Draw Against Commissions</small></td>' +\n                '<td style=\"border: none !important;line-height: 5px;\"><small>' + drawAgainstCommission + '</small></td>' +\n                '</tr>' +\n                '<tr style=\"padding:0px;margin:0px;\">' +\n                '<td style=\"border: none !important;line-height: 5px;\"><small>DOB</small></td>' +\n                '<td style=\"border: none !important;line-height: 5px;\"><small>' + dob + '</small></td>' +\n                '</tr>' +\n                '</table>' +\n                '</div>' +\n                '</div>');\n        //html.push('<div class\"row\">' + index + '</div>');\n        \$.each(row, function (key, value) {\n            //html.push('<p><b>' + key + ':</b> ' + value + '</p>');\n        });\n        return html.join('');\n    }\n\n    function convertData(response) {\n        var jsonString = JSON.parse(response);\n        extendColData = [];\n\n        var startId = 1,\n                rows = [];\n\n    ";
     // line 184
     echo "                for (var i = 0; i < jsonString.users.length; i++) {\n                    var tempUser = jsonString.users[i];\n\n                    extendColData.push({\n                    });\n                    \n                    var editPath = '";
     // line 190
     echo $this->env->getExtension('routing')->getPath("login_login_edituserpage", array("id" => 0));
     echo "';\n                    editPath = editPath.substring(0, editPath.length - 1);\n\n                    var openDealPath = '";
     // line 193
     echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("opportunity_opportunitycontactfilterV2", array("id" => 0, "filter" => 0)), "html", null, true);
     echo "';\n                    openDealPath = openDealPath.substring(0, openDealPath.length - 3);\n                    \n                    var taskPath = '";
     // line 196
     echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("task_manage_task", array("type" => "user", "id" => 0)), "html", null, true);
     echo "';\n                    taskPath = taskPath.substring(0, taskPath.length - 1);\n                    \n                    var openDeal = tempUser.openDeals;\n                    if(tempUser.openDeals > 0){\n                        openDeal = '<a href=\"' + openDealPath + tempUser.id + '/OpenUser' + '\">' + tempUser.openDeals + '</a>';\n                    }\n                    \n                    var wonDeal = tempUser.wonDeals;\n                    if(tempUser.wonDeals !== '0'){\n                        wonDeal = '<a href=\"' + openDealPath + tempUser.id + '/WonUser' + '\">\$' + tempUser.wonDeals + '</a>';\n                    }\n                    \n                    var lostDeal = tempUser.lossDeals;\n                    if(tempUser.lossDeals !== '0'){\n                        lostDeal = '<a href=\"' + openDealPath + tempUser.id + '/LostUser' + '\">\$' + tempUser.lossDeals + '</a>';\n                    }\n                    \n                    var action = '';\n                    var name = '";
     // line 215
     echo twig_escape_filter($this->env, twig_lower_filter($this->env, isset($context["name"]) ? $context["name"] : $this->getContext($context, "name")), "html", null, true);
     echo "';\n                    if (name.toLowerCase() === tempUser.username.toLowerCase()) {\n                        action = '<div class=\"pull-right\">' +\n                                '<div class=\"keep-open btn-group\">' +\n                                '<button class=\"btn btn-default btn-xs dropdown-toggle\" data-toggle=\"dropdown\">' +\n                                '<i class=\"glyphicon glyphicon-chevron-down\"></i>' +\n                                '</button>' +\n                                '<ul class=\"dropdown-menu\" role=\"menu\" style=\"min-width: 0px !important;\">' +\n                                '<li><a href=\"' + editPath + tempUser.id + '\"><i class=\"fa fa-pencil-square-o\"></i> Edit</a></li>' +\n                                '<li><a href=\"#\" onclick=\"notespopup(' + tempUser.id + ')\"><i class=\"fa fa-file-o\"></i> Notes</a></li>' +\n                                '<li><a href=\"'+taskPath + tempUser.id +'\"><i class=\"fa fa-list\"></i> Tasks</a></li>' +\n                                '</ul>' +\n                                '</div>' +\n                                '</div>'\n                    }\n                    \n                    rows.push({\n                        first_name: tempUser.firstname,\n                        last_name: tempUser.lastname,\n                        username: tempUser.username,\n                        open_deal: openDeal,\n                        projected_revenue: '\$' + tempUser.projectedRevenue,\n                        weighted_forecast: '\$' + tempUser.individualForecast,\n                        won_deals: wonDeal,\n                        lost_deals: lostDeal,\n                        user_status: tempUser.status,\n                        user_level: tempUser.role,\n                        action: action,\n                        title: tempUser.title,\n                        company: tempUser.company,\n                        email: tempUser.email,\n                        telephone: tempUser.telephone,\n                        cellphone: tempUser.cellphone,\n                        originator: tempUser.originator,\n                        nonOriginator: tempUser.nonOriginator,\n                        earningGoals: tempUser.earningGoals,\n                        drawAgainstCommission: tempUser.drawAgainstCommission,\n                        dob: tempUser.dob\n\n                    });\n                }\n                return rows;\n            }\n\n            function priceSorter(a, b) {\n                a = +a.substring(1); // remove \$\n                b = +b.substring(1);\n                if (a > b)\n                    return 1;\n                if (a < b)\n                    return -1;\n                return 0;\n            }\n\n            function rowStyle(row, index) {\n                var classes = ['active'];\n\n                if (index % 2 === 0) {\n                    return {\n                        classes: classes[0]\n                    };\n                }\n                return {};\n            }\n            \n            function exportTableDataToCSV() {\n                var data = JSON.parse(initResponse);\n                \n                exportToCSV(data.users, \"users.csv\", [\"firstname\", \"lastname\", \"username\", \"openDeals\", \"projectedRevenue\", \n                    \"individualForecast\", \"wonDeals\", \"lossDeals\"]);\n            }\n            \n            function exportTableDataToPDF() {\n                var data = JSON.parse(initResponse);\n                \n                var userTablePDF = new exportPDF(data.users, \"users.pdf\", [\"firstname\", \"lastname\", \"username\", \"openDeals\", \"projectedRevenue\", \n                    \"individualForecast\", \"wonDeals\", \"lossDeals\"], \"Manage Users\");\n            }\n</script>";
 }
开发者ID:sirojan24,项目名称:BusinessPipeline,代码行数:31,代码来源:1e26fa37728064cdc1b29fe213cf418b0e9c4b0e40cf485c24599f2be06e.php


示例3: block_body_class

 public function block_body_class($context, array $blocks = array())
 {
     $__internal_2a7ad61baa16eaf7c9cbef91b7d57144dc80c137d49bd3ba086a65cbf78207a2 = $this->env->getExtension("native_profiler");
     $__internal_2a7ad61baa16eaf7c9cbef91b7d57144dc80c137d49bd3ba086a65cbf78207a2->enter($__internal_2a7ad61baa16eaf7c9cbef91b7d57144dc80c137d49bd3ba086a65cbf78207a2_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "body_class"));
     echo twig_escape_filter($this->env, "edit edit-" . twig_lower_filter($this->env, $this->getAttribute(isset($context["_entity_config"]) ? $context["_entity_config"] : $this->getContext($context, "_entity_config"), "name", array())), "html", null, true);
     $__internal_2a7ad61baa16eaf7c9cbef91b7d57144dc80c137d49bd3ba086a65cbf78207a2->leave($__internal_2a7ad61baa16eaf7c9cbef91b7d57144dc80c137d49bd3ba086a65cbf78207a2_prof);
 }
开发者ID:3lolo,项目名称:lr_app,代码行数:7,代码来源:3adc100df0499fb665a73778270b08365cf324d228d76f609a16cbe1e9006334.php


示例4: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<ul class=\"archives\">\n\n";
     // line 3
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["archives_data"]) ? $context["archives_data"] : null);
     foreach ($context['_seq'] as $context["month"] => $context["items"]) {
         // line 4
         echo "    <li>\n    \t<a href=\"";
         // line 5
         echo isset($context["base_url"]) ? $context["base_url"] : null;
         echo "/archives_month";
         echo $this->getAttribute($this->getAttribute(isset($context["config"]) ? $context["config"] : null, "system", array()), "param_sep", array());
         echo twig_escape_filter($this->env, twig_lower_filter($this->env, twig_date_format_filter($this->env, $context["month"], "M_Y")), "url");
         echo "\">\n        <span class=\"archive_date\">";
         // line 6
         echo $context["month"];
         echo "</span>\n        </a>";
         // line 7
         if (isset($context["archives_show_count"]) ? $context["archives_show_count"] : null) {
             echo "<span class=\"label\"> ( ";
             echo twig_length_filter($this->env, $context["items"]);
             echo " )</span>\n        ";
         }
         // line 9
         echo "    </li>\n";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['month'], $context['items'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 11
     echo "</ul>\n";
 }
开发者ID:pendigo,项目名称:pendigo.xyz,代码行数:34,代码来源:6e14d961534991b9690b4ecba8275452e4c42f6a60f2173c62560bbf210b7547.php


示例5: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<script>\n    var \$opportunitySourceTable = \$('#opportunitytable');\n    var extendColData = [];\n    var initOpportunitySourceResponse;\n\n    \$(document).ready(function () {\n        \$(\"#opportunityTableDiv\").show();\n        iniFillOppotunitySourceTableData();\n    });\n\n    function iniFillOppotunitySourceTableData() {\n        \$opportunitySourceTable.bootstrapTable('showLoading');\n        var data = '";
     // line 13
     echo twig_escape_filter($this->env, isset($context["opportunitySourceArray"]) ? $context["opportunitySourceArray"] : $this->getContext($context, "opportunitySourceArray"), "html", null, true);
     echo "';\n        var newString = data.replace(/&quot;/g, '\"');\n        initOpportunitySourceResponse = newString;\n        //var newString = JSON.parse(data);\n        \$opportunitySourceTable.bootstrapTable('hideLoading');\n        \$opportunitySourceTable.bootstrapTable('append', convertOpportunitySourceData(newString));\n    }\n\n    function refreshOpportunitySourceTable() {\n        \$opportunitySourceTable.bootstrapTable('removeAll');\n        fillOpportunitySourceTableData();\n    }\n\n    function fillOpportunitySourceTableData() {\n        \$opportunitySourceTable.bootstrapTable('showLoading');\n        \$.post('";
     // line 28
     echo $this->env->getExtension('routing')->getPath("settings_opportunity_source_table_data");
     echo "', null,\n                function (response) {\n                    if (response) {\n                        \$opportunitySourceTable.bootstrapTable('hideLoading');\n                        initOpportunitySourceResponse = response;\n                        \$opportunitySourceTable.bootstrapTable('append', convertOpportunitySourceData(response));\n                    } else {\n\n                    }\n                }\n        );\n    }\n\n    function fillTableDataWithUsername(username) {\n        \$opportunitySourceTable.bootstrapTable('removeAll');\n        \$opportunitySourceTable.bootstrapTable('showLoading');\n        var path = '";
     // line 44
     echo $this->env->getExtension('routing')->getPath("contacts_contacts_table_data_username_filter", array("username" => "0"));
     echo "';\n        path = path.substring(0, path.length - 1);\n\n        \$.post(path + username, null,\n                function (response) {\n                    if (response) {\n                        \$opportunitySourceTable.bootstrapTable('hideLoading');\n                        \$opportunitySourceTable.bootstrapTable('append', convertOpportunitySourceData(response));\n                    } else {\n\n                    }\n                }\n        );\n    }\n\n    function checkAndSetValue(value, blankValue, scale, pre) {\n        if (value === '' || value === null) {\n            return blankValue;\n        } else {\n            if (pre === true) {\n                return scale + '' + value;\n            } else {\n                return value + '' + scale;\n            }\n        }\n    }\n\n    function detailFormatter(index, row) {\n\n        var note = checkAndSetValue(extendColData[index].note, '-', '', true);\n\n        var html = [];\n        html.push('<div class\"row\">' +\n                '<div class=\"col-xs-4\">' +\n                '<table class=\"table\" style=\"margin-left:42px; border: none !important;line-height: 5px;\">' +\n                '<tr style=\"padding:0px;margin:0px;border-bottom: 1px solid #DCDCDC;\">' +\n                '<td style=\"border: none !important;line-height: 5px;width:30%\"><small>Notes</small></td>' +\n                '<td style=\"border: none !important;line-height: 5px;\"><small>' + note + '</small></td>' +\n                '</tr>' +\n                '</table>' +\n                '</div>' +\n                '</div>');\n        //html.push('<div class\"row\">' + index + '</div>');\n        \$.each(row, function (key, value) {\n            //html.push('<p><b>' + key + ':</b> ' + value + '</p>');\n        });\n        return html.join('');\n    }\n\n    function convertOpportunitySourceData(response) {\n        var jsonString = JSON.parse(response);\n        extendColData = [];\n\n        var startId = 1,\n                rows = [];\n\n        for (var i = 0; i < jsonString.opportunitySources.length; i++) {\n            var tempType = jsonString.opportunitySources[i];\n\n            extendColData.push({\n                note: tempType.notes\n            });\n\n            var name = '";
     // line 107
     echo twig_escape_filter($this->env, twig_lower_filter($this->env, isset($context["name"]) ? $context["name"] : $this->getContext($context, "name")), "html", null, true);
     echo "';\n            var action = '';\n            var role = '";
     // line 109
     echo twig_escape_filter($this->env, isset($context["role"]) ? $context["role"] : $this->getContext($context, "role"), "html", null, true);
     echo "';\n            if (role === \"Admin\") {\n                action = '<div class=\"pull-right\">' +\n                        '<div class=\"keep-open btn-group\">' +\n                        '<button class=\"btn btn-default btn-xs dropdown-toggle\" data-toggle=\"dropdown\">' +\n                        '<i class=\"glyphicon glyphicon-chevron-down\"></i>' +\n                        '</button>' +\n                        '<ul class=\"dropdown-menu\" role=\"menu\" style=\"min-width: 0px !important;\">' +\n                        '<li><a href=\"javascript:opeEditOpportunitySourceModal(' + tempType.id + ')\"><i class=\"fa fa-pencil-square-o\"></i> Edit</a></li>';\n\n                if (tempType.status === \"Inactive\") {\n                    action += '<li><a href=\"javascript:activateOpportunitySource(' + tempType.id + ')\"><i class=\"fa fa-check\"></i> Activate</a></li>';\n                } else if (tempType.status === \"Active\") {\n                    action += '<li><a href=\"javascript:deleteOpportunitySource(' + tempType.id + ')\"><i class=\"fa fa-times\"></i> Delete</a></li>';\n                }\n\n                action += '</ul>' +\n                        '</div>' +\n                        '</div>';\n            }else{\n                \$opportunitySourceTable.bootstrapTable('hideColumn', 'Action');\n            }\n\n            rows.push({\n                opportunitySource: tempType.opportunitySource,\n                notes: tempType.notes,\n                status: tempType.status,\n                action: action\n            });\n        }\n        return rows;\n    }\n\n    function deactivateOpportunitySourceId(id) {\n        \$opportunitySourceTable.bootstrapTable('removeAll');\n        \$opportunitySourceTable.bootstrapTable('showLoading');\n\n        var jsonString = JSON.parse(initOpportunitySourceResponse);\n        var filterContact = [];\n\n        for (var i = 0; i < jsonString.opportunitySources.length; i++) {\n            var tempStage = jsonString.opportunitySources[i];\n\n            if (id === tempStage.id) {\n                tempStage.status = \"Inactive\";\n            }\n            filterContact.push(tempStage);\n\n        }\n        var filterOpportunitiesArray = {'opportunitySources': filterContact};\n        var jsonStr = JSON.stringify(filterOpportunitiesArray);\n        initOpportunitySourceResponse = jsonStr;\n        \$opportunitySourceTable.bootstrapTable('hideLoading');\n        \$opportunitySourceTable.bootstrapTable('append', convertOpportunitySourceData(jsonStr));\n    }\n\n    function deleteOpportunitySource(id) {\n        //\$opportunitySourceTable.bootstrapTable('showLoading');\n        var path = '";
     // line 167
     echo $this->env->getExtension('routing')->getPath("settings_deleteopportunitysource", array("id" => 0));
     echo "';\n        path = path.substring(0, path.length - 1);\n\n        \$.post(path + id, null,\n                function (response) {\n                    if (response) {\n                        //\$opportunitySourceTable.bootstrapTable('showLoading');\n                        deactivateOpportunitySourceId(id);\n                    } else {\n                        \$opportunitySourceTable.bootstrapTable('hideLoading');\n                    }\n                }\n        );\n    }\n\n    function activateOpportunitySourceId(id) {\n        \$opportunitySourceTable.bootstrapTable('removeAll');\n        \$opportunitySourceTable.bootstrapTable('showLoading');\n\n        var jsonString = JSON.parse(initOpportunitySourceResponse);\n        var filterContact = [];\n\n        for (var i = 0; i < jsonString.opportunitySources.length; i++) {\n            var tempStage = jsonString.opportunitySources[i];\n\n            if (id === tempStage.id) {\n                tempStage.status = \"Active\";\n            }\n            filterContact.push(tempStage);\n\n        }\n        var filterOpportunitiesArray = {'opportunitySources': filterContact};\n        var jsonStr = JSON.stringify(filterOpportunitiesArray);\n        initOpportunitySourceResponse = jsonStr;\n        \$opportunitySourceTable.bootstrapTable('hideLoading');\n        \$opportunitySourceTable.bootstrapTable('append', convertOpportunitySourceData(jsonStr));\n    }\n\n    function activateOpportunitySource(id) {\n        //\$opportunitySourceTable.bootstrapTable('showLoading');\n        var path = '";
     // line 207
     echo $this->env->getExtension('routing')->getPath("settings_activateopportunitysource", array("id" => 0));
     echo "';\n        path = path.substring(0, path.length - 1);\n\n        \$.post(path + id, null,\n                function (response) {\n                    if (response) {\n                        activateOpportunitySourceId(id);\n                    } else {\n                        \$opportunitySourceTable.bootstrapTable('hideLoading');\n                    }\n                }\n        );\n    }\n\n    function priceSorter(a, b) {\n        a = +a.substring(1); // remove \$\n        b = +b.substring(1);\n        if (a > b)\n            return 1;\n        if (a < b)\n            return -1;\n        return 0;\n    }\n\n    function rowStyle(row, index) {\n        var classes = ['active'];\n\n        if (index % 2 === 0) {\n            return {\n                classes: classes[0]\n            };\n        }\n        return {};\n    }\n    \n    function exportOpportunitySourceTableDataToPDF() {\n        var data = JSON.parse(initOpportunitySourceResponse);\n                \n        var userTablePDF = new exportPDF(data.opportunitySources, \"opportunitySources.pdf\", [\"opportunitySource\", \"notes\", \"status\"], \"Manage Products\");\n    }\n    \n    function exportOpportunitySourceTableDataToCSV() {\n        var data = JSON.parse(initOpportunitySourceResponse);\n                \n        exportToCSV(data.opportunitySources, \"opportunitySources.csv\", [\"opportunitySource\", \"notes\", \"status\"]);\n    }\n</script>";
 }
开发者ID:sirojan24,项目名称:BusinessPipeline,代码行数:26,代码来源:9d8dc22f4ac13ca40af41564164fd05cdb0558d92f8e652a444c8f864708.php


示例6: block_body_class

 public function block_body_class($context, array $blocks = array())
 {
     $__internal_1ca9b8c9e6e9e470939fa91edc4c240346d5f984d7519dc7d3514aa86f5bcfe6 = $this->env->getExtension("native_profiler");
     $__internal_1ca9b8c9e6e9e470939fa91edc4c240346d5f984d7519dc7d3514aa86f5bcfe6->enter($__internal_1ca9b8c9e6e9e470939fa91edc4c240346d5f984d7519dc7d3514aa86f5bcfe6_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "body_class"));
     echo twig_escape_filter($this->env, "edit edit-" . twig_lower_filter($this->env, $this->getAttribute(isset($context["_entity_config"]) ? $context["_entity_config"] : $this->getContext($context, "_entity_config"), "name", array())), "html", null, true);
     $__internal_1ca9b8c9e6e9e470939fa91edc4c240346d5f984d7519dc7d3514aa86f5bcfe6->leave($__internal_1ca9b8c9e6e9e470939fa91edc4c240346d5f984d7519dc7d3514aa86f5bcfe6_prof);
 }
开发者ID:karolskora1993,项目名称:strona-przedszkola,代码行数:7,代码来源:4eba2610b1e22ca25938b3648481aa9102c2f0a5f7b630281ef57b0c5865d1e3.php


示例7: block_linkElement

 public function block_linkElement($context, array $blocks = array())
 {
     // line 23
     echo "    ";
     $context["oro_menu"] = $this->loadTemplate("OroNavigationBundle:Menu:menu.html.twig", "OroNavigationBundle:Menu:_htabs.html.twig", 23);
     // line 24
     echo "    ";
     $context["itemLink"] = $this->getAttribute(isset($context["item"]) ? $context["item"] : null, "uri", array());
     // line 25
     echo "    ";
     if ($this->getAttribute(isset($context["item"]) ? $context["item"] : null, "hasChildren", array()) && $this->getAttribute(isset($context["item"]) ? $context["item"] : null, "displayChildren", array())) {
         // line 26
         echo "        ";
         $context["linkAttributes"] = twig_array_merge(isset($context["linkAttributes"]) ? $context["linkAttributes"] : null, array("data-toggle" => "tab"));
         // line 27
         echo "        ";
         $context["itemLink"] = "#" . trim(twig_lower_filter($this->env, twig_replace_filter($this->getAttribute(isset($context["item"]) ? $context["item"] : null, "name", array()), array(" " => "_", "#" => "_"))));
         // line 28
         echo "    ";
     } else {
         // line 29
         echo "        ";
         $context["linkAttributes"] = twig_array_merge(isset($context["linkAttributes"]) ? $context["linkAttributes"] : null, array("class" => $context["oro_menu"]->getadd_attribute_values(isset($context["linkAttributes"]) ? $context["linkAttributes"] : null, "class", array(0 => "empty"))));
         // line 32
         echo "    ";
     }
     // line 33
     echo "    <a href=\"";
     echo twig_escape_filter($this->env, isset($context["itemLink"]) ? $context["itemLink"] : null, "html", null, true);
     echo "\"";
     echo $context["oro_menu"]->getattributes(isset($context["linkAttributes"]) ? $context["linkAttributes"] : null);
     echo ">";
     $this->displayBlock("label", $context, $blocks);
     echo "</a>\n";
 }
开发者ID:aml-bendall,项目名称:ExpandAkeneoApi,代码行数:35,代码来源:c8a2b9c23cb1c77de66f25decb624aa532a5fdb7264d6d7299163ce4f9a47d82.php


示例8: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<script>\n    var \$table = \$('#table');\n    var extendColData = [];\n    var initResponse;\n    var isShowInactiveContact = false;\n    \n    \$(document).ready(function () {\n        \$(\"#tableDiv\").show();\n        iniFillTableData();\n        \$table.bootstrapTable('hideColumn', 'tags');\n    });\n\n\n    function showHideInactiveContacts(){\n        \$table.bootstrapTable('removeAll');\n        \n        var showHide = \$( \"#showHide\" ).children();\n        \n        if (isShowInactiveContact == false){\n            isShowInactiveContact = true;\n            \$(\"#showHideInactiveContact\").html(\"<i class='fa fa-eye-slash'></i> Hide Inactive Contacts\");\n            if(showHide.hasClass(\"fa-eye\")){\n                \$table.bootstrapTable('append', convertData(initResponse));\n            }else{\n                var username = '";
     // line 25
     echo twig_escape_filter($this->env, twig_lower_filter($this->env, isset($context["name"]) ? $context["name"] : $this->getContext($context, "name")), "html", null, true);
     echo "';\n                usernameFilter(username);\n\n            }\n        }else{\n            isShowInactiveContact = false;\n            \$(\"#showHideInactiveContact\").html(\"<i class='fa fa-eye'></i> Show Inactive Contacts\");\n            if(showHide.hasClass(\"fa-eye\")){\n                \$table.bootstrapTable('append', convertData(initResponse));\n            }else{\n                var username = '";
     // line 35
     echo twig_escape_filter($this->env, twig_lower_filter($this->env, isset($context["name"]) ? $context["name"] : $this->getContext($context, "name")), "html", null, true);
     echo "';\n                usernameFilter(username);\n\n            }\n        }\n        \n        \n        \n    }\n    \n    function iniFillTableData() {\n        \$table.bootstrapTable('showLoading');\n        var data = '";
     // line 47
     echo twig_escape_filter($this->env, isset($context["contactArray"]) ? $context["contactArray"] : $this->getContext($context, "contactArray"), "html", null, true);
     echo "';\n        var newString = data.replace(/&quot;/g, '\"');\n        initResponse = newString;\n        \$table.bootstrapTable('hideLoading');\n        //\$table.bootstrapTable('append', convertData(newString));\n        var username = '";
     // line 52
     echo twig_escape_filter($this->env, twig_lower_filter($this->env, isset($context["name"]) ? $context["name"] : $this->getContext($context, "name")), "html", null, true);
     echo "';\n        usernameFilter(username);\n    }\n\n    function refreshTable() {\n        \$table.bootstrapTable('removeAll');\n        fillTableData();\n    }\n    \n    function showHideContacts() {\n        \$table.bootstrapTable('removeAll');\n        \n        var showHide = \$( \"#showHide\" ).children();\n        \n        if(showHide.hasClass(\"fa-eye\")){\n            showHide.removeClass( \"fa-eye\" );\n            showHide.addClass( \"fa-eye-slash\" );\n            showHide.attr(\"title\",\"Show Other Contacts\");\n            var username = '";
     // line 70
     echo twig_escape_filter($this->env, twig_lower_filter($this->env, isset($context["name"]) ? $context["name"] : $this->getContext($context, "name")), "html", null, true);
     echo "';\n            usernameFilter(username);\n        }else{\n            showHide.addClass( \"fa-eye\" );\n            showHide.removeClass( \"fa-eye-slash\" );\n            showHide.attr(\"title\",\"Hide Other Contacts\");\n            \$table.bootstrapTable('append', convertData(initResponse));\n            \n        }\n    }\n\n    function fillTableData() {\n        \$table.bootstrapTable('showLoading');\n        \$.post('";
     // line 83
     echo $this->env->getExtension('routing')->getPath("contacts_contacts_table_data");
     echo "', null,\n                function (response) {\n                    if (response) {\n                        \$table.bootstrapTable('hideLoading');\n                        initResponse = response;\n                        //\$table.bootstrapTable('append', convertData(response));\n                        var username = '";
     // line 89
     echo twig_escape_filter($this->env, twig_lower_filter($this->env, isset($context["name"]) ? $context["name"] : $this->getContext($context, "name")), "html", null, true);
     echo "';\n                        usernameFilter(username);\n                    } else {\n\n                    }\n                }\n        );\n    }\n\n    function usernameFilter(username) {\n        \$table.bootstrapTable('removeAll');\n        \$table.bootstrapTable('showLoading');\n\n        var jsonString = JSON.parse(initResponse);\n        var filterContact = [];\n\n        for (var i = 0; i < jsonString.contacts.length; i++) {\n            var tempContact = jsonString.contacts[i];\n\n            if (username.toLowerCase() === tempContact.username.toLowerCase()) {\n                filterContact.push(tempContact);\n            }\n\n        }\n        var filterOpportunitiesArray = {'contacts': filterContact};\n        var jsonStr = JSON.stringify(filterOpportunitiesArray);\n\n        \$table.bootstrapTable('hideLoading');\n        \$table.bootstrapTable('append', convertData(jsonStr));\n    }\n\n    function fillTableDataWithUsername(username) {\n        \$table.bootstrapTable('removeAll');\n        \$table.bootstrapTable('showLoading');\n        var path = '";
     // line 123
     echo $this->env->getExtension('routing')->getPath("contacts_contacts_table_data_username_filter", array("username" => "0"));
     echo "';\n        path = path.substring(0, path.length - 1);\n\n        \$.post(path + username, null,\n                function (response) {\n                    if (response) {\n                        \$table.bootstrapTable('hideLoading');\n                        \$table.bootstrapTable('append', convertData(response));\n                    } else {\n\n                    }\n                }\n        );\n    }\n\n    function deleteContact(id){\n        \$.post('";
     // line 139
     echo $this->env->getExtension('routing')->getPath("contacts_delete_contact");
     echo "', { id: id },\n                function (response) {\n                    if (response) {\n                        changeStatus(id, \"Inactive\");\n                    } else {\n\n                    }\n                }\n        );\n    }\n    \n    function activateContact(id){\n        \$.post('";
     // line 151
     echo $this->env->getExtension('routing')->getPath("contacts_activate_contact");
     echo "', { id: id },\n                function (response) {\n                    if (response) {\n                        changeStatus(id, \"Active\");\n                    } else {\n\n                    }\n                }\n        );\n    }\n    \n    function changeStatus(id, status) {\n        \$table.bootstrapTable('removeAll');\n        \$table.bootstrapTable('showLoading');\n\n        var jsonString = JSON.parse(initResponse);\n        var filterUsers = [];\n\n        for (var i = 0; i < jsonString.contacts.length; i++) {\n            var tempContact = jsonString.contacts[i];\n\n            if (tempContact.id == id) {\n                tempContact.status = status;\n            }\n            \n            filterUsers.push(tempContact);\n        }\n        var filterOpportunitiesArray = {'contacts': filterUsers};\n        var jsonStr = JSON.stringify(filterOpportunitiesArray);\n        initResponse = jsonStr;\n        //\$table.bootstrapTable('hideLoading');\n        //\$table.bootstrapTable('append', convertData(jsonStr));\n        var username = '";
     // line 183
     echo twig_escape_filter($this->env, twig_lower_filter($this->env, isset($context["name"]) ? $context["name"] : $this->getContext($context, "name")), "html", null, true);
     echo "';\n        usernameFilter(username);\n    }\n    \n    function storePageSize(size) {\n        \$.post('";
     // line 188
     echo $this->env->getExtension('routing')->getPath("login_login_saveconfig");
     echo "',\n                {name: 'contactview', value: size},\n        function (response) {\n            if (response !== \"false\") {\n\n            } else {\n                console.log(\"error occured in getting the manage view number in contacts\", response);\n            }\n        });\n    }\n\n    function checkAndSetValue(value, blankValue, scale, pre) {\n        if (value === '' || value === null) {\n            return blankValue;\n        } else {\n            if (pre === true) {\n                return scale + '' + value;\n            } else {\n                return value + '' + scale;\n            }\n        }\n    }\n\n    function detailFormatter(index, row) {\n\n        var tags = checkAndSetValue(row.tags, '-', '', true);\n        var email = checkAndSetValue(row.email, '-', '', true);\n        var telephone = checkAndSetValue(row.telephone, '-', '', true);\n        \n        var emailData = email.split(\":\");\n        var telephoneData = telephone.split(\":\");\n        \n        email = emailData[0] + ' : <a href=\"mailto:' + emailData[1] + '\" target=\"_top\">' + emailData[1] + '</a>';\n        telephone = telephoneData[0] + \" : \" + telephoneData[1];\n\n        var html = [];\n        html.push('<div class\"row\">' +\n                '<div class=\"col-xs-4\">' +\n                '<table class=\"table\" style=\"margin-left:42px; border: none !important;background-color: #fbfbfb;\">' +\n                '<tr style=\"padding:0px;margin:0px;\">' +\n                '<td style=\"border: none !important;width:30%;important;line-height: 10px;\"><small>Email</small></td>' +\n                '<td style=\"border: none !important;important;line-height: 10px;\"><small>' + email + '</small></td>' +\n                '</tr>' +\n                '<tr style=\"padding:0px;margin:0px;\">' +\n                '<td style=\"border: none !important;important;line-height: 10px;\"><small>Telephone</small></td>' +\n                '<td style=\"border: none !important;important;line-height: 10px;\"><small>' + telephone + '</small></td>' +\n                '</tr>' +\n                '<tr style=\"padding:0px;margin:0px;\">' +\n                '<td style=\"border: none !important;important;line-height: 10px;\"><small>Tags</small></td>' +\n                '<td style=\"border: none !important;important;line-height: 10px;\"><small>' + tags + '</small></td>' +\n                '</tr>' +\n                '</table>' +\n                '</div>' +\n                '</div>');\n        //html.push('<div class\"row\">' + index + '</div>');\n        \$.each(row, function (key, value) {\n            //html.push('<p><b>' + key + ':</b> ' + value + '</p>');\n        });\n        return html.join('');\n    }\n\n    function convertData(response) {\n        var jsonString = JSON.parse(response);\n        extendColData = [];\n\n        var startId = 1,\n                rows = [];\n\n    ";
     // line 258
     echo "                for (var i = 0; i < jsonString.contacts.length; i++) {\n                    var tempContact = jsonString.contacts[i];\n\n                    extendColData.push({\n                        email: tempContact.email,\n                        telephone: tempContact.telephone,\n                        tags: tempContact.tags\n                    });\n\n                    var editPath = '";
     // line 267
     echo $this->env->getExtension('routing')->getPath("contacts_contacts_editcontactpageV2", array("id" => 0));
     echo "';\n                    editPath = editPath.substring(0, editPath.length - 1);\n                    \n                    var newDealPath = '";
     // line 270
     echo $this->env->getExtension('routing')->getPath("opportunity_addcontactopportunityV2", array("id" => 0));
     echo "';\n                    newDealPath = newDealPath.substring(0, newDealPath.length - 1);\n\n                    var openDealPath = '";
     // line 273
     echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("opportunity_opportunitycontactfilterV2", array("id" => 0, "filter" => 0)), "html", null, true);
     echo "';\n                    openDealPath = openDealPath.substring(0, openDealPath.length - 3);\n                    \n                    var taskPath = '";
     // line 276
     echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("task_manage_task", array("type" => "contact", "id" => 0)), "html", null, true);
     echo "';\n                    taskPath = taskPath.substring(0, taskPath.length - 1);\n\n                    var name = '";
     // line 279
     echo twig_escape_filter($this->env, twig_lower_filter($this->env, isset($context["name"]) ? $context["name"] : $this->getContext($context, "name")), "html", null, true);
     echo "';\n                    var action = '';\n                    if (name.toLowerCase() === tempContact.username.toLowerCase()) {\n                        if(tempContact.status == \"Active\"){\n                            action = '<div class=\"pull-right\">' +\n                                '<div class=\"keep-open btn-group\">' +\n                                '<button class=\"btn btn-default btn-xs dropdown-toggle\" data-toggle=\"dropdown\">' +\n                                '<i class=\"glyphicon glyphicon-chevron-down\"></i>' +\n                                '</button>' +\n                                '<ul class=\"dropdown-menu\" role=\"menu\" style=\"min-width: 0px !important;\">' +\n                             

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP twig_number_format_filter函数代码示例发布时间:2022-05-23
下一篇:
PHP twig_length_filter函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap