本文整理汇总了PHP中Common::subString方法的典型用法代码示例。如果您正苦于以下问题:PHP Common::subString方法的具体用法?PHP Common::subString怎么用?PHP Common::subString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Common
的用法示例。
在下文中一共展示了Common::subString方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: isset
img/profile-home/digital_project.png"></i></div>
<div class="tile-status"><span class="name"><small>PROJECT 04</small></span></div>
</a>
<!--end DATA tile-->
</div>
</div>
<!--************end project panel***********-->
<!--************begin Description panel***********-->
<div class="tab-pane fade" id="client_description" style="height:500px;">
<div class="grid fluid">
<span class="span6" style="border:1px #ffffff solid;padding:8px;">
<?php
$rows_description = $this->users->getMetaDataList('consultant_employers', "employer_id='" . $clientID . "' AND consultant_id='" . $this->sess_userid . "' AND status=1 AND designate_status=1", '', 'client_description');
$show_client_description = isset($rows_description[0]['client_description']) ? $rows_description[0]['client_description'] : '';
echo $client_description = isset($rows_description[0]['client_description']) ? Common::subString(nl2br($rows_description[0]['client_description']), 170) : '';
?>
</span>
</div>
<div class="grid fluid">
<span class="span6 text-right">
<p></p><a href='#descriptionModal' data-toggle='modal' class="fg-white" title="Edit"><button class="image-button primary" >Edit<i style="padding: 3px;" class="icon-enter bg-cobalt" id="openInstModel"></i></button><!--i class="icon-enter" id="openInstModel"></i--></a>
</span>
</div>
</div>
<!--start description Modal-->
<div id="descriptionModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-header bg-red"><h3 id="myModalLabel">DESCRIPTION<i class="pull-right icon-cancel-2" style="margin-right:10px;" data-dismiss="modal"></i></h3></div>
<div id="errors"></div>
<div class="modal-body">
示例2: isset
AND in_consultant_id="' . $doc['in_consultant_id'] . '" AND st_library_perform_status!="completed"', '', 'COUNT(id) AS tot_client_library');
// common::pr($is_library_open);
$is_library_open = isset($is_library_open[0]['tot_client_library']) ? $is_library_open[0]['tot_client_library'] : '';
if ($is_library_open) {
$advinspection_title = isset($doc['st_title']) && $doc['st_title'] ? $doc['st_title'] : 'Advance Inspection';
$inspection_date = isset($doc['dt_datetime_inspection']) && $doc['dt_datetime_inspection'] != "0000-00-00 00:00:00" ? date('Y-m-d', strtotime($doc['dt_datetime_inspection'])) : '';
?>
<a href="<?php
echo $base . "admin/my_inspection_advanced_consultant?inspection_id=" . $libid . "&clientid=" . $doc['in_client_id'];
?>
" style="opacity:0.8;" class="insp tile half-library bg-darker description" data-toggle="popover" data-placement="bottom" data-trigger="hover" title="<?php
echo $advinspection_title;
?>
">
<span class="fg-white margin10"><small><?php
echo Common::subString($advinspection_title, 16);
?>
</small></span>
<div class="brand"><span class="label fg-white text-center"><small><?php
echo $inspection_date;
?>
</small></span></div>
</a>
<?php
if ($page == 3) {
$page = 0;
echo "<div class='clear'></div>";
}
$page++;
$cnt_purchased++;
}
示例3:
echo $href;
?>
" class="<?php
echo $bg_class;
?>
tile half-library description" data-toggle="popover" data-content="<?php
echo $contents_on_hover;
?>
" data-original-title="<h5 class='margin10'><?php
echo $proc_purchased_title;
?>
</h5>" data-placement="bottom" data-trigger="hover"> <img src="<?php
echo $base . $this->path_img_library . "procedures.png";
?>
" /> <span class="fg-white" style="position:absolute;top:0px;"><small><?php
echo Common::subString($proc_purchased_title, 15);
?>
</small></span>
<div class="brand">
<span class="label text-right" style="padding-right:19px !important;"><small><?php
echo $text_expired;
?>
<img src="<?php
echo $base;
?>
img/icons_xp.png" style="height:16px;" /> <?php
echo $points;
?>
</small></span>
<span class="badge bg-red"><?php
示例4:
?>
" image="<?php
echo $base . $employer_image;
?>
" image_connection="<?php
echo $base . $img_employer_connec;
?>
" class="multSelImg icon_connection" value="<?php
echo $val_allemployers['id'];
?>
" <?php
echo $selected;
?>
>
<?php
echo Common::subString(trim($val_allemployers['username']), 12);
?>
</option>
<?php
}
}
?>
</select>
<script type="text/javascript">
var emp_warning = $(".cls-employer");
var is_readonly = '<?php
echo $is_readonly;
?>
';
$(function(){
$("#cmb_safetytalk_allemployers").multiselect({
示例5:
echo $doc['lib_id'];
?>
" libdata="<?php
echo $doc['in_inv_form_id'] . "-6-" . $doc['lib_id'];
?>
" class="investigation tile half-library half-library bg-darker description" data-toggle="popover" data-content="<?php
echo $contents_on_hover;
?>
" data-original-title="<?php
echo "<h5 class='margin10'>" . $title . "</h5>";
?>
" data-placement="bottom" data-trigger="hover" libtype_section="Investigations"> <i class="icon on-left"><img src="<?php
echo $base . $this->path_img_library . "investigations.png";
?>
"></i> <span class="list-title fg-white margin5" style="position:absolute;top:0px;"><small><?php
echo Common::subString($inv_form_no, 15);
?>
</small></span>
<div class="brand"> <span class="label fg-white text-center"><small><img src="<?php
echo $base;
?>
img/icons_xp.png" style="height:16px;" /> <?php
echo $points;
?>
</small></span> </div>
</a>
<?php
}
}
if ($page == 3) {
$page = 0;
示例6:
<i class="icon on-left"><img src="<?php
echo $doc['st_icon_path'];
?>
" width="40" height="40"></i>
<?php
} else {
?>
<i class="icon on-left"><img src="<?php
echo $base . $this->path_img_library . "safety_talks.png";
?>
" width="40" height="40"></i>
<?php
}
?>
<span class="list-title fg-white margin10"><small><?php
echo Common::subString($safetytalks_title, 16);
?>
</small></span>
<div class="brand"> <span class="label fg-white text-center"><small><i class=""><img src="<?php
echo $base;
?>
img/icons_xp.png" style="height:16px;" /></i> <?php
echo $doc['credits'];
?>
</small></span>
<span class="badge bg-red" id="balance_<?php
echo $doc['libtype_section'];
echo $doc['lib_id'];
?>
"><?php
echo $doc['inventory'];
示例7:
<i class="icon on-left"><img src="<?php
echo $doc['st_icon_path'];
?>
" width="40" width="40" ></i>
<?php
} else {
?>
<i class="icon on-left"><img src="<?php
echo $base . $this->path_img_library . "icon-en.png";
?>
" width="40" width="40" ></i>
<?php
}
?>
<span class="list-title fg-white text-center"><small><?php
echo Common::subString($doc['lib_title'], 16);
?>
</small></span>
<div class="brand">
<span class="label fg-white text-center"><small><?php
echo $doc['credits'];
?>
points</small></span>
<span class="badge bg-red" id="balance_<?php
echo $doc['libtype_section'];
echo $doc['lib_id'];
?>
"><?php
echo $doc['inventory'];
?>
</span>