當前位置: 首頁>>代碼示例>>PHP>>正文


PHP smarty_modifier_cutstr函數代碼示例

本文整理匯總了PHP中smarty_modifier_cutstr函數的典型用法代碼示例。如果您正苦於以下問題:PHP smarty_modifier_cutstr函數的具體用法?PHP smarty_modifier_cutstr怎麽用?PHP smarty_modifier_cutstr使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了smarty_modifier_cutstr函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: content_55d7ea60d5a567_84870867

    function content_55d7ea60d5a567_84870867($_smarty_tpl)
    {
        if (!is_callable('smarty_function_link')) {
            include '/www/wwwroot/www.fzgxw.com/system/plugins/smarty/function.link.php';
        }
        if (!is_callable('smarty_modifier_cutstr')) {
            include '/www/wwwroot/www.fzgxw.com/system/plugins/smarty/modifier.cutstr.php';
        }
        ?>
                              
                             <li style="width:170px;padding-left:1px">
                                 <div><font style ="font-size:13px"><?php 
        echo $_smarty_tpl->tpl_vars['index']->value + 1;
        ?>
.</font><a target="_blank" href="<?php 
        echo smarty_function_link(array('ctl' => 'content:diaryDetail', 'arg0' => $_smarty_tpl->tpl_vars['item']->value['diary_id']), $_smarty_tpl);
        ?>
" title="<?php 
        echo $_smarty_tpl->tpl_vars['item']->value['title'];
        ?>
" ><?php 
        echo smarty_modifier_cutstr($_smarty_tpl->tpl_vars['item']->value['title'], 16, '');
        ?>
</a></div>
                              </li>
                              <?php 
    }
開發者ID:a195474368,項目名稱:ejiawang,代碼行數:27,代碼來源:25321d09aed9c9f21f9f3d298a21a1d652d346ae.string.php

示例2: content_55d7ea2e5b3229_85657045

    function content_55d7ea2e5b3229_85657045($_smarty_tpl)
    {
        if (!is_callable('smarty_function_link')) {
            include '/www/wwwroot/www.fzgxw.com/system/plugins/smarty/function.link.php';
        }
        if (!is_callable('smarty_modifier_cutstr')) {
            include '/www/wwwroot/www.fzgxw.com/system/plugins/smarty/modifier.cutstr.php';
        }
        ?>
                                       
                                             <?php 
        if ($_smarty_tpl->tpl_vars['index']->value == 15) {
            ?>
						<div class="host-list-image">
							<a target="_blank" href="<?php 
            echo smarty_function_link(array('ctl' => 'site:detail', 'arg0' => $_smarty_tpl->tpl_vars['item']->value['site_id']), $_smarty_tpl);
            ?>
" title="<?php 
            echo $_smarty_tpl->tpl_vars['item']->value['title'];
            ?>
"><img src="<?php 
            echo $_smarty_tpl->tpl_vars['pager']->value['img'];
            ?>
/<?php 
            echo $_smarty_tpl->tpl_vars['item']->value['face_pic'];
            ?>
" width="200px" height="140px"/></a>
						</div>
                                            
						<ul>   
                                                     
							<li><a  target="_blank" class="one" href="<?php 
            echo smarty_function_link(array('ctl' => 'site:detail', 'arg0' => $_smarty_tpl->tpl_vars['item']->value['site_id']), $_smarty_tpl);
            ?>
"><i>1.</i><?php 
            echo smarty_modifier_cutstr($_smarty_tpl->tpl_vars['item']->value['title'], 24, '');
            ?>
</a></li>
                                                     <?php 
        } elseif ($_smarty_tpl->tpl_vars['index']->value > 15 && $_smarty_tpl->tpl_vars['index']->value < 20) {
            ?>
     
							<li><a  target="_blank" href="<?php 
            echo smarty_function_link(array('ctl' => 'site:detail', 'arg0' => $_smarty_tpl->tpl_vars['item']->value['site_id']), $_smarty_tpl);
            ?>
"><i><?php 
            echo $_smarty_tpl->tpl_vars['index']->value - 14;
            ?>
</i><?php 
            echo smarty_modifier_cutstr($_smarty_tpl->tpl_vars['item']->value['title'], 24, '');
            ?>
</a></li>
							
                                                 <?php 
        }
        ?>
       
						</ul>
                                           <?php 
    }
開發者ID:a195474368,項目名稱:ejiawang,代碼行數:60,代碼來源:4d921b0ffe58151e562e4ef67110860c33a368e3.string.php

示例3: content_55d7ebaca2e957_69076556

    function content_55d7ebaca2e957_69076556($_smarty_tpl)
    {
        if (!is_callable('smarty_function_link')) {
            include '/www/wwwroot/www.fzgxw.com/system/plugins/smarty/function.link.php';
        }
        if (!is_callable('smarty_modifier_cutstr')) {
            include '/www/wwwroot/www.fzgxw.com/system/plugins/smarty/modifier.cutstr.php';
        }
        ?>
 
                <p class="lt ml10">
                <div class="block"><b class="f14"><?php 
        echo $_smarty_tpl->tpl_vars['item']->value['title'];
        ?>
</b></div>
                <div class="block mt20">
                    <a title="<?php 
        echo $_smarty_tpl->tpl_vars['item']->value['title'];
        ?>
" target="_blank" href="<?php 
        echo smarty_function_link(array('ctl' => 'content:detail', 'arg0' => $_smarty_tpl->tpl_vars['item']->value['article_id']), $_smarty_tpl);
        ?>
" class="f14 black"><?php 
        echo smarty_modifier_cutstr($_smarty_tpl->tpl_vars['item']->value['desc'], 120, '..');
        ?>
</a>
                </div>

                </p>
                <?php 
    }
開發者ID:a195474368,項目名稱:ejiawang,代碼行數:31,代碼來源:a6e37a1b8a0842c70806b2f769bcf9fa024b1f28.string.php

示例4: content_55d7ea40312f75_15333766

    function content_55d7ea40312f75_15333766($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_cutstr')) {
            include '/www/wwwroot/www.fzgxw.com/system/plugins/smarty/modifier.cutstr.php';
        }
        if (!is_callable('smarty_function_link')) {
            include '/www/wwwroot/www.fzgxw.com/system/plugins/smarty/function.link.php';
        }
        ?>
						<div class="host-title">                                                                      
							 <?php 
        echo smarty_modifier_cutstr($_smarty_tpl->tpl_vars['item']->value['title'], 22, '');
        ?>
              
						</div>
						<div class="host-dis">
							報名立減<span><?php 
        echo $_smarty_tpl->tpl_vars['item']->value['jieyue'];
        ?>
</span>元
                                                        <a target="_blank" title="<?php 
        echo $_smarty_tpl->tpl_vars['item']->value['title'];
        ?>
" href="<?php 
        echo smarty_function_link(array('ctl' => 'home:tuanDetail', 'arg0' => $_smarty_tpl->tpl_vars['item']->value['tuan_id']), $_smarty_tpl);
        ?>
"><input type="button" class="host-input" value="我要報名" />
                                                        </a></div>
                                            <?php 
    }
開發者ID:a195474368,項目名稱:ejiawang,代碼行數:30,代碼來源:ee8c8afa9ae31b5ef0f2263d3debab3ff88f5fcd.string.php

示例5: content_55d7ebc26f5d50_26365527

    function content_55d7ebc26f5d50_26365527($_smarty_tpl)
    {
        if (!is_callable('smarty_function_link')) {
            include '/www/wwwroot/www.fzgxw.com/system/plugins/smarty/function.link.php';
        }
        if (!is_callable('smarty_modifier_format')) {
            include '/www/wwwroot/www.fzgxw.com/system/plugins/smarty/modifier.format.php';
        }
        if (!is_callable('smarty_modifier_cutstr')) {
            include '/www/wwwroot/www.fzgxw.com/system/plugins/smarty/modifier.cutstr.php';
        }
        ?>
					<li>
						<a href="<?php 
        echo smarty_function_link(array('ctl' => 'tenders:detail', 'arg0' => $_smarty_tpl->tpl_vars['item']->value['id']), $_smarty_tpl);
        ?>
" target="_blank"><?php 
        echo smarty_modifier_format($_smarty_tpl->tpl_vars['item']->value['dateline'], 'm-d');
        ?>
</a>
						<a href="<?php 
        echo smarty_function_link(array('ctl' => 'tenders:detail', 'arg0' => $_smarty_tpl->tpl_vars['item']->value['id']), $_smarty_tpl);
        ?>
" target="_blank"><?php 
        echo smarty_modifier_cutstr($_smarty_tpl->tpl_vars['item']->value['name'], 3, '**');
        ?>
</a>
						<a href="<?php 
        echo smarty_function_link(array('ctl' => 'tenders:detail', 'arg0' => $_smarty_tpl->tpl_vars['item']->value['id']), $_smarty_tpl);
        ?>
" target="_blank"><?php 
        echo $_smarty_tpl->tpl_vars['item']->value['area'];
        ?>
㎡</a>
						<a target='_blank' title="<?php 
        echo $_smarty_tpl->tpl_vars['item']->value['title'];
        ?>
" href="<?php 
        echo smarty_function_link(array('ctl' => 'tenders:detail', 'arg0' => $_smarty_tpl->tpl_vars['item']->value['id']), $_smarty_tpl);
        ?>
" class="red"><?php 
        echo $_smarty_tpl->tpl_vars['item']->value['title'];
        ?>
</a>
						<a href="<?php 
        echo smarty_function_link(array('ctl' => 'tenders:detail', 'arg0' => $_smarty_tpl->tpl_vars['item']->value['id']), $_smarty_tpl);
        ?>
" target="_blank"><?php 
        echo $_smarty_tpl->tpl_vars['item']->value['budget_title'];
        ?>
</a>
						<div class="clear"></div>
					</li>
                                        <?php 
    }
開發者ID:a195474368,項目名稱:ejiawang,代碼行數:55,代碼來源:76e5d989421528b583bbe32604a1c54b90b7c4a5.string.php

示例6: content_55d7f76dbff922_77369743

    function content_55d7f76dbff922_77369743($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_cutstr')) {
            include '/www/wwwroot/www.fzgxw.com/system/plugins/smarty/modifier.cutstr.php';
        }
        ?>
“<?php 
        echo smarty_modifier_cutstr($_smarty_tpl->tpl_vars['item']->value['title'], 20, '**');
        ?>
”<?php 
    }
開發者ID:a195474368,項目名稱:ejiawang,代碼行數:11,代碼來源:0efc7d4051ab1563c1b68e45967833bf965c373c.string.php

示例7: content_55d7ea404c0899_77163178

    function content_55d7ea404c0899_77163178($_smarty_tpl)
    {
        if (!is_callable('smarty_function_link')) {
            include '/www/wwwroot/www.fzgxw.com/system/plugins/smarty/function.link.php';
        }
        if (!is_callable('smarty_modifier_cutstr')) {
            include '/www/wwwroot/www.fzgxw.com/system/plugins/smarty/modifier.cutstr.php';
        }
        if (!is_callable('smarty_block_calldata')) {
            include '/www/wwwroot/www.fzgxw.com/system/plugins/smarty/block.calldata.php';
        }
        ?>
						<a class="help-left-image" href="<?php 
        echo smarty_function_link(array('ctl' => 'company', 'arg0' => $_smarty_tpl->tpl_vars['item']->value['company_id']), $_smarty_tpl);
        ?>
"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['pager']->value['img'];
        ?>
/<?php 
        echo $_smarty_tpl->tpl_vars['item']->value['logo'];
        ?>
" width="110" height="50" /></a>
						<div class="help-con">
							<a href="<?php 
        echo smarty_function_link(array('ctl' => 'company', 'arg0' => $_smarty_tpl->tpl_vars['item']->value['company_id']), $_smarty_tpl);
        ?>
"><?php 
        echo smarty_modifier_cutstr($_smarty_tpl->tpl_vars['item']->value['name'], 20, '');
        ?>
</a>
                                                        <?php 
        $_smarty_tpl->smarty->_tag_stack[] = array('calldata', array('mdl' => "tenders/tenders", 'status' => 1, 'sign_company_id' => $_smarty_tpl->tpl_vars['item']->value['company_id'], 'order' => "sign_time:desc", 'limit' => "1"));
        $_block_repeat = true;
        echo smarty_block_calldata(array('mdl' => "tenders/tenders", 'status' => 1, 'sign_company_id' => $_smarty_tpl->tpl_vars['item']->value['company_id'], 'order' => "sign_time:desc", 'limit' => "1"), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>

							<p><{$areaList[$item.area_id].area_name}>-<{$item.home_name|cutstr:14}></p>
							<p><{$item.name|cutstr:16}></p>
                                                        <?php 
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_calldata(array('mdl' => "tenders/tenders", 'status' => 1, 'sign_company_id' => $_smarty_tpl->tpl_vars['item']->value['company_id'], 'order' => "sign_time:desc", 'limit' => "1"), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        ?>
  
						</div>
                                                             
						<div class="clear"></div>
                                             <?php 
    }
開發者ID:a195474368,項目名稱:ejiawang,代碼行數:53,代碼來源:841732e07f1adf0b22c4a53022c8025c6e96d390.string.php

示例8: content_55d7ea2fe2f528_47396098

    function content_55d7ea2fe2f528_47396098($_smarty_tpl)
    {
        if (!is_callable('smarty_function_link')) {
            include '/www/wwwroot/www.fzgxw.com/system/plugins/smarty/function.link.php';
        }
        if (!is_callable('smarty_modifier_cutstr')) {
            include '/www/wwwroot/www.fzgxw.com/system/plugins/smarty/modifier.cutstr.php';
        }
        ?>
                                           <a target="_blank" href="<?php 
        echo smarty_function_link(array('ctl' => 'content:detail', 'arg0' => $_smarty_tpl->tpl_vars['item']->value['article_id']), $_smarty_tpl);
        ?>
" title="<?php 
        echo $_smarty_tpl->tpl_vars['item']->value['title'];
        ?>
">
                                           <img src="<?php 
        echo $_smarty_tpl->tpl_vars['pager']->value['img'];
        ?>
/<?php 
        echo $_smarty_tpl->tpl_vars['item']->value['thumb'];
        ?>
" width="145" height="145" /></a>
                                        <div class="boss-enter"><a target="_blank" href="<?php 
        echo smarty_function_link(array('ctl' => 'content:detail', 'arg0' => $_smarty_tpl->tpl_vars['item']->value['article_id']), $_smarty_tpl);
        ?>
" title="<?php 
        echo $_smarty_tpl->tpl_vars['item']->value['title'];
        ?>
">
                                                專訪企業:巨嘉裝飾集團</a></div>
					   <div class="boss-name"><a target="_blank" href="<?php 
        echo smarty_function_link(array('ctl' => 'content:detail', 'arg0' => $_smarty_tpl->tpl_vars['item']->value['article_id']), $_smarty_tpl);
        ?>
" title="<?php 
        echo $_smarty_tpl->tpl_vars['item']->value['title'];
        ?>
">
                                                   企業CEO:付總</a></div>
					   <p>個人簡介:<?php 
        echo smarty_modifier_cutstr($_smarty_tpl->tpl_vars['item']->value['desc'], 100, '...');
        ?>
</p>
					<div class="clear"></div>
					<div class="ask-con">
						<p class="ask">億家網:請問付總對目前裝修行業發展前景狀況和未來發展趨勢的看法?</p>
						<p class="answer">付總:隨著中國的發展,城鄉一體化的改造,行業發展前景是非常樂觀的,因為國內需求量較大。</p>
						<p class="ask">億家網:針對目前裝修行業之間混戰及惡意競爭的現狀有什麽好的建議?</p>
						<p class="answer">付總:隨著時代的變革,跨界經營慢慢在搶占裝修市場,裝修行業應以合作、整合、聯盟、共贏的趨勢發展,突出產品自身優勢,做最具性價比的產品。</p>
					</div>
                                         <?php 
    }
開發者ID:a195474368,項目名稱:ejiawang,代碼行數:52,代碼來源:bbe9e96f3e81f2a8e250eb0748aa893da15cc9fd.string.php

示例9: content_55d7ea2ff0a2c6_99694716

    function content_55d7ea2ff0a2c6_99694716($_smarty_tpl)
    {
        if (!is_callable('smarty_function_link')) {
            include '/www/wwwroot/www.fzgxw.com/system/plugins/smarty/function.link.php';
        }
        if (!is_callable('smarty_modifier_cutstr')) {
            include '/www/wwwroot/www.fzgxw.com/system/plugins/smarty/modifier.cutstr.php';
        }
        ?>
                                           <a target="_blank" href="<?php 
        echo smarty_function_link(array('ctl' => 'content:detail', 'arg0' => $_smarty_tpl->tpl_vars['item']->value['article_id']), $_smarty_tpl);
        ?>
" title="<?php 
        echo $_smarty_tpl->tpl_vars['item']->value['title'];
        ?>
">
                                           <img src="<?php 
        echo $_smarty_tpl->tpl_vars['pager']->value['img'];
        ?>
/<?php 
        echo $_smarty_tpl->tpl_vars['item']->value['thumb'];
        ?>
" width="145" height="145" /></a>
                                        <div class="boss-enter"><a target="_blank" href="<?php 
        echo smarty_function_link(array('ctl' => 'content:detail', 'arg0' => $_smarty_tpl->tpl_vars['item']->value['article_id']), $_smarty_tpl);
        ?>
" title="<?php 
        echo $_smarty_tpl->tpl_vars['item']->value['title'];
        ?>
">
                                                專訪企業:魯公大宅裝飾有限公司</a></div>
					   <div class="boss-name"><a target="_blank" href="<?php 
        echo smarty_function_link(array('ctl' => 'content:detail', 'arg0' => $_smarty_tpl->tpl_vars['item']->value['article_id']), $_smarty_tpl);
        ?>
" title="<?php 
        echo $_smarty_tpl->tpl_vars['item']->value['title'];
        ?>
">
                                                   企業總監:孫海鬆</a></div>
					   <p>個人簡介:<?php 
        echo smarty_modifier_cutstr($_smarty_tpl->tpl_vars['item']->value['desc'], 100, '...');
        ?>
</p>
					<div class="clear"></div>
					<div class="ask-con">
						<p class="ask">億家網:請問—孫總監,您認為目前在裝修行業裏,設計師扮演的是一個什麽樣的角色?</p>
						<p class="answer">孫總監:其實設計師是一個很重要的角色。除了參謀以外,還是一個重要的參與者,能給業主提供專業的參考指導。</p>
						<p class="ask">億家網:請問—總監,如何闡述設計師在裝修工程裏麵的重要性?</p>
						<p class="answer">孫總監:可以這樣說,裝修如果沒有設計師,那其它工作都沒法做。設計師要把業主的要求,裝修風格,材料、使用功能都安排好了,施工隊才能施工。就好比,一條新聞如果沒有記者先寫好了,那廣播電視是無法播出一樣。</p>
					</div>
                                         <?php 
    }
開發者ID:a195474368,項目名稱:ejiawang,代碼行數:52,代碼來源:3b250d4bd80f1b1a418a265c601bb5875c076fda.string.php

示例10: content_55d7ea340e60b4_74166463

    function content_55d7ea340e60b4_74166463($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_cutstr')) {
            include '/www/wwwroot/www.fzgxw.com/system/plugins/smarty/modifier.cutstr.php';
        }
        if (!is_callable('smarty_function_link')) {
            include '/www/wwwroot/www.fzgxw.com/system/plugins/smarty/function.link.php';
        }
        if (!is_callable('smarty_block_calldata')) {
            include '/www/wwwroot/www.fzgxw.com/system/plugins/smarty/block.calldata.php';
        }
        ?>
                <tr>                  
                    <td><?php 
        echo smarty_modifier_cutstr($_smarty_tpl->tpl_vars['item']->value['name'], 10, '**');
        ?>
</td>          
                    <td><?php 
        echo $_smarty_tpl->tpl_vars['item']->value['area'];
        ?>
㎡</td>
                    <td><a target='_blank' title="<?php 
        echo $_smarty_tpl->tpl_vars['item']->value['title'];
        ?>
" href="<?php 
        echo smarty_function_link(array('ctl' => 'tenders:detail', 'arg0' => $_smarty_tpl->tpl_vars['item']->value['id']), $_smarty_tpl);
        ?>
" class=""style=" color:#666;font-size:14px"><?php 
        echo $_smarty_tpl->tpl_vars['item']->value['title'];
        ?>
</a></td>
                      <?php 
        $_smarty_tpl->smarty->_tag_stack[] = array('calldata', array('mdl' => "tenders/setting", 'setting_id' => $_smarty_tpl->tpl_vars['item']->value['budget_id'], 'limit' => "1"));
        $_block_repeat = true;
        echo smarty_block_calldata(array('mdl' => "tenders/setting", 'setting_id' => $_smarty_tpl->tpl_vars['item']->value['budget_id'], 'limit' => "1"), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>

                      <td><{$item.name}></td>
                      <?php 
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_calldata(array('mdl' => "tenders/setting", 'setting_id' => $_smarty_tpl->tpl_vars['item']->value['budget_id'], 'limit' => "1"), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        ?>
                  
                </tr>
                    <div class="cl"></div>             
               <?php 
    }
開發者ID:a195474368,項目名稱:ejiawang,代碼行數:52,代碼來源:e292c5270dd1fcc847ad6111a59796bb5626963c.string.php

示例11: content_55d7ea83e04cc2_43536099

    function content_55d7ea83e04cc2_43536099($_smarty_tpl)
    {
        if (!is_callable('smarty_function_link')) {
            include '/www/wwwroot/www.fzgxw.com/system/plugins/smarty/function.link.php';
        }
        if (!is_callable('smarty_modifier_cutstr')) {
            include '/www/wwwroot/www.fzgxw.com/system/plugins/smarty/modifier.cutstr.php';
        }
        ?>
<ul>
<?php 
        $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['item']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['data']->value['diary'];
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value) {
            $_smarty_tpl->tpl_vars['item']->_loop = true;
            ?>
    <li>
        <a title="<?php 
            echo ($tmp = @$_smarty_tpl->tpl_vars['data']->value['diary_company_list'][$_smarty_tpl->tpl_vars['item']->value['company_id']]['name']) === null || $tmp === '' ? '--' : $tmp;
            ?>
" class="red" target="_blank" href="<?php 
            echo smarty_function_link(array('ctl' => 'company', 'arg0' => $_smarty_tpl->tpl_vars['item']->value['company_id']), $_smarty_tpl);
            ?>
">[<?php 
            echo ($tmp = @$_smarty_tpl->tpl_vars['data']->value['diary_company_list'][$_smarty_tpl->tpl_vars['item']->value['company_id']]['sort_name']) === null || $tmp === '' ? '--' : $tmp;
            ?>
]</a>
        <a target="_blank" href="<?php 
            echo smarty_function_link(array('ctl' => 'content:diaryDetail', 'arg0' => $_smarty_tpl->tpl_vars['item']->value['diary_id']), $_smarty_tpl);
            ?>
" title="<?php 
            echo $_smarty_tpl->tpl_vars['item']->value['title'];
            ?>
" class="black"><?php 
            echo smarty_modifier_cutstr($_smarty_tpl->tpl_vars['item']->value['title'], 24, '..');
            ?>
 </a>
    </li>
<?php 
        }
        ?>
</ul><?php 
    }
開發者ID:a195474368,項目名稱:ejiawang,代碼行數:47,代碼來源:215bfb8384cdb873aee1f68cc95f80839f04167a.widget.right.html.php

示例12: content_55d7ea2e117e87_86070494

    function content_55d7ea2e117e87_86070494($_smarty_tpl)
    {
        if (!is_callable('smarty_function_link')) {
            include '/www/wwwroot/www.fzgxw.com/system/plugins/smarty/function.link.php';
        }
        if (!is_callable('smarty_modifier_cutstr')) {
            include '/www/wwwroot/www.fzgxw.com/system/plugins/smarty/modifier.cutstr.php';
        }
        ?>
                                                      <?php 
        if ($_smarty_tpl->tpl_vars['index']->value == 0) {
            ?>
							<li><a target="_blank" class="one" href="<?php 
            echo smarty_function_link(array('ctl' => 'content:detail', 'arg0' => $_smarty_tpl->tpl_vars['item']->value['article_id']), $_smarty_tpl);
            ?>
"><i>1.</i><?php 
            echo smarty_modifier_cutstr($_smarty_tpl->tpl_vars['item']->value['title'], 22, '');
            ?>
<span><?php 
            echo date('m-d', $_smarty_tpl->tpl_vars['item']->value['dateline']);
            ?>
</span></a></li>
                                                        <?php 
        } else {
            ?>
							<li><a target="_blank" href="<?php 
            echo smarty_function_link(array('ctl' => 'content:detail', 'arg0' => $_smarty_tpl->tpl_vars['item']->value['article_id']), $_smarty_tpl);
            ?>
"><i><?php 
            echo $_smarty_tpl->tpl_vars['index']->value + 1;
            ?>
</i><?php 
            echo smarty_modifier_cutstr($_smarty_tpl->tpl_vars['item']->value['title'], 22, '');
            ?>
<span><?php 
            echo date('m-d', $_smarty_tpl->tpl_vars['item']->value['dateline']);
            ?>
</span></a></li>
							<?php 
        }
        ?>
                                                        <?php 
    }
開發者ID:a195474368,項目名稱:ejiawang,代碼行數:43,代碼來源:f1fb05dc6f52c12e2ef99b5941e056e4dfc8aa1a.string.php

示例13: content_55d7ea4058d451_58103325

    function content_55d7ea4058d451_58103325($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_cutstr')) {
            include '/www/wwwroot/www.fzgxw.com/system/plugins/smarty/modifier.cutstr.php';
        }
        ?>
							<p><?php 
        echo $_smarty_tpl->tpl_vars['areaList']->value[$_smarty_tpl->tpl_vars['item']->value['area_id']]['area_name'];
        ?>
-<?php 
        echo smarty_modifier_cutstr($_smarty_tpl->tpl_vars['item']->value['home_name'], 14);
        ?>
</p>
							<p><?php 
        echo smarty_modifier_cutstr($_smarty_tpl->tpl_vars['item']->value['name'], 16);
        ?>
</p>
                                                        <?php 
    }
開發者ID:a195474368,項目名稱:ejiawang,代碼行數:19,代碼來源:584007cac5dc16c480fe0c65cc1ca604adbfdeec.string.php

示例14: content_55d7f76dbdd5a1_76062709

    function content_55d7f76dbdd5a1_76062709($_smarty_tpl)
    {
        if (!is_callable('smarty_function_link')) {
            include '/www/wwwroot/www.fzgxw.com/system/plugins/smarty/function.link.php';
        }
        if (!is_callable('smarty_modifier_cutstr')) {
            include '/www/wwwroot/www.fzgxw.com/system/plugins/smarty/modifier.cutstr.php';
        }
        if (!is_callable('smarty_block_calldata')) {
            include '/www/wwwroot/www.fzgxw.com/system/plugins/smarty/block.calldata.php';
        }
        ?>
            <li>
              <p><a target="_blank" title="<?php 
        echo $_smarty_tpl->tpl_vars['item']->value['title'];
        ?>
" href="<?php 
        echo smarty_function_link(array('ctl' => 'home:tuanDetail', 'arg0' => $_smarty_tpl->tpl_vars['item']->value['tuan_id']), $_smarty_tpl);
        ?>
" ><?php 
        echo smarty_modifier_cutstr($_smarty_tpl->tpl_vars['item']->value['mobile'], 4, '**');
        ?>
報名了
                    <?php 
        $_smarty_tpl->smarty->_tag_stack[] = array('calldata', array('mdl' => "home/tuan", 'tuan_id' => $_smarty_tpl->tpl_vars['item']->value['tuan_id'], 'city_id' => $_smarty_tpl->tpl_vars['this']->value->request['city_id']));
        $_block_repeat = true;
        echo smarty_block_calldata(array('mdl' => "home/tuan", 'tuan_id' => $_smarty_tpl->tpl_vars['item']->value['tuan_id'], 'city_id' => $_smarty_tpl->tpl_vars['this']->value->request['city_id']), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>
“<{$item.title|cutstr:20:'**'}>”<?php 
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_calldata(array('mdl' => "home/tuan", 'tuan_id' => $_smarty_tpl->tpl_vars['item']->value['tuan_id'], 'city_id' => $_smarty_tpl->tpl_vars['this']->value->request['city_id']), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        ?>
</a></p>
           </li>
           <?php 
    }
開發者ID:a195474368,項目名稱:ejiawang,代碼行數:41,代碼來源:e2cedfd3433740bd0cb34664e134e8647c9e8f95.string.php

示例15: content_55d7f75905bc96_07462516

    function content_55d7f75905bc96_07462516($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_cutstr')) {
            include '/www/wwwroot/www.fzgxw.com/system/plugins/smarty/modifier.cutstr.php';
        }
        if (!is_callable('smarty_function_link')) {
            include '/www/wwwroot/www.fzgxw.com/system/plugins/smarty/function.link.php';
        }
        ?>
                            <p><font class="red">[最新評價]</font><?php 
        echo smarty_modifier_cutstr($_smarty_tpl->tpl_vars['item']->value['content'], 50);
        ?>
<font class="rt"><a target="_blank" title="<?php 
        echo $_smarty_tpl->tpl_vars['item']->value['name'];
        ?>
" href="<?php 
        echo smarty_function_link(array('ctl' => 'company', 'arg0' => $_smarty_tpl->tpl_vars['item']->value['company_id']), $_smarty_tpl);
        ?>
" class="black">更多</a></font></p>
                            <?php 
    }
開發者ID:a195474368,項目名稱:ejiawang,代碼行數:21,代碼來源:5f2876dbb90f571dfed828860104d539a6f9ed73.string.php


注:本文中的smarty_modifier_cutstr函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。