本文整理汇总了PHP中XString::changeBlank2nbspAndLtrim方法的典型用法代码示例。如果您正苦于以下问题:PHP XString::changeBlank2nbspAndLtrim方法的具体用法?PHP XString::changeBlank2nbspAndLtrim怎么用?PHP XString::changeBlank2nbspAndLtrim使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类XString
的用法示例。
在下文中一共展示了XString::changeBlank2nbspAndLtrim方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<?php
header("Content-Type:text/html; charset=gb2312");
?>
<p class='mt10'>
<input type='radio' checked = 'checked' name='hosDep' value='<?=$hospitalKey?>'/> <?=XString::changeBlank2nbspAndLtrim(mb_convert_encoding($bingLiHospital->hospitalName, "gbk", "auto"))?> <?=XString::changeBlank2nbspAndLtrim(mb_convert_encoding($bingLiHospital->facultyName, "gbk", "auto"))?>
</p>
示例2: header
<?php
header("Content-Type:text/html; charset=gb2312");
?>
<div class="medMsgBox lh200 w580">
<div class="f14">
<p>
<input type='checkbox' checked = 'checked' name='medicinekey[]' class='vm2' value='<?=$medicineKey?>'/>
<label class='f14 black fb ml4'> 药物名称:</label><?=XString::changeBlank2nbspAndLtrim($medicineName)?>
</p>
<div class="clearfix">
<span class="fl f14 black fb pb10" style="padding-left:21px">用药说明:</span>
<div class="oh zoom">
<?=nl2br(XString::changeBlank2nbspAndLtrim($medicineDesc))?>
</div>
</div>
</div>
</div>
<div class="addMsg pr zoom f14 mt40">
<p><a href="javascript:" class="addMedMsg-btn blue" id="addMedMsg-btn">新增当前用药情况</a></p>
<div class="addMsg-Box pa top36 none" id="addMedMsg-Box">
<p>
<label class="fb">药物名称:</label>
<input type="text" class="zxPost-input253 vm " id="medname"/>
<span class="gray4 f14">( 不超过35个字符 )</span>
</p>
<p class="f14 blue mt10 ml70">( 例如:阿司匹林肠溶片 )</p>
<p class="mt20">
<span class="fb">服用说明:</span>
<span class="gray4 f14">(此处请填写服用药物的剂量,次数/天,服用多长时间了,是否有不适反应, 不超过100个字符)</span>
</p>
示例3:
<div class="mt10 f14">
<p>
<input type='checkbox' checked = 'checked' name='hospitalkey[]' class='vm2' value='<?=$hospitalKey?>'/>
<label class='fb f14 ml10'>Ò½Ôº£º</label><?=XString::changeBlank2nbspAndLtrim($bingLiHospital->hospitalName)?>
</p>
<p>
<label class='fb f14 ml30'>¿ÆÊÒ£º</label><?=XString::changeBlank2nbspAndLtrim($bingLiHospital->facultyName)?>
</p>
</div>
示例4: foreach
</tr>
</table>
</div>
</div>
<div class="f17 lh160 mt25">
<p class="f19 pb10">治疗的医院和科室?</p>
<?php
foreach($patientHospitalInfo as $key => $hospitalInfo)
{
?>
<div class="black clearfix bg_gf pad_10 mb10 b_ra3">
<p class="f19 fl pr15"><input type="radio" name="hos" id="<?=$key?>" value="<?=$key?>"></p>
<label for="<?=$key?>" hidefocus="true">
<div class="hh">
<p class="lh120 gray6">
<?=XString::changeBlank2nbspAndLtrim($hospitalInfo->hospitalName)?> <?=XString::changeBlank2nbspAndLtrim($hospitalInfo->facultyName)?>
</p>
</div>
</label>
</div>
<?php
}
?>
<p class="notice_icon1 f19"><a href="javascript:;" onclick="return checkInterimTreatmentForm();">以上都不是,新增医院信息</a></p>
</div>
</div>
<div class="pub_btn mt10 ml15 mr15">
<a href="javascript:;" onclick="return checkTreatmentForm();">确定</a>
</div>
</form>
<form id="interimTreatmentForm" action="interimaddtreatmentexperience" method="post" accept-charset="GBK">
示例5: foreach
$treatmentInfos = $intention->getTreatmentInfos();
if (isset($treatmentInfos) && false == empty($treatmentInfos))
{
?>
<div class="mb5">
<p class="pb5 clearfix pr10 pb10"><span class="fl">Ôø½ÓÊܹýµÄÖÎÁÆ£º</span></p>
<?php foreach ($treatmentInfos as $key => $treatmentInfo) { ?>
<div class="sub_item gray6 clearfix psr mt5">
<div class="gray6 pr50 bt_e5 pt10 pb10">
<div><p class="fl w_50_1">ÃèÊö:</p><p class="hh"><?=XString::changeBlank2nbspAndLtrim(isset($treatmentInfo->treatmentDesc) ? $treatmentInfo->treatmentDesc : "δÌî")?></p></div>
<div class="mt5">
<p class="fl w_50_1">ʱ¼ä:</p>
<p class="hh">
<?=isset($treatmentInfo->beginTime) ? substr($treatmentInfo->beginTime,0,10) : ""?>
<?=isset($treatmentInfo->endTime) ? "ÖÁ ".substr($treatmentInfo->beginTime,0,10) : ""?>
</p>
</div>
<div class="mt5">
<p class="fl w_50_1">¿ÆÊÒ:</p>
<p class="hh">
<?=XString::changeBlank2nbspAndLtrim(isset($treatmentInfo->treatedHospital['hospitalName']) ? $treatmentInfo->treatedHospital['hospitalName'] : "δÌî")?> <?=XString::changeBlank2nbspAndLtrim(isset($treatmentInfo->treatedHospital['facultyName']) ? $treatmentInfo->treatedHospital['facultyName'] : "δÌî")?>
</p>
</div>
</div>
<p class="delete_edit pt10"><a class="fr blue_1 del" href="javascript:;" onclick="return deletePartOfIntentionContent('<?=Intention::TREATMENTINFOS?>', <?=$key?>)">ɾ³ý</a></p>
</div>
<?php } ?>
</div>
<?php } ?>
示例6: foreach
<select name="dateday" id="enddateday" class="display_tip"
defMSG="succ" check_function="check_dateday">
<?=isset($day) ? "<option value='".$day."'>".$day."</option>" : "" ?>
<option value="">未选</option>
</select> 日
</p>
<p class="mt25 fb" id="hosInnerTreatErr">治疗的主要医院和科室(单选):</p>
<div class="mt25">
<div class="hosMsgBox lh200">
<?php
foreach($patientHospitalInfo as $key => $hospital)
{
?>
<p class="mt10">
<input type="radio" name="hosDep" value="<?=$key?>"/> <?=XString::changeBlank2nbspAndLtrim($hospital->hospitalName)?> <?=XString::changeBlank2nbspAndLtrim($hospital->facultyName)?>
</p>
<?php
}
?>
</div>
<div class="pr zoom">
<p class="mt10">
<input type="radio" name="hosDep" id="addHosMsg-btn"/> 以上都不是,其他
</p>
<div class="addMsg-subBox pa top36 none" id="addHosMsg-Box">
<p>
<label class="f14 gray">医院:</label>
<input type="text" class="zxPost-input132 vm " id="hos"/>
<label class="f14 gray ml5">科室:</label>
<input type="text" class="zxPost-input132 vm " id="dep"/>
示例7: checkRadio
<!-- start zxPost-content -->
<div class="zxPost-content pl100 pt40">
<form action="/newcase/binddiseaseexperience" onsubmit="return checkRadio();" method="post" accept-charset="GBK">
<h3 class="fn f30 f-yahei">您本次咨询的主要疾病问题:</h3>
<div class="pt20">
<div class="disMsgBox lh200">
<?php
$bindIds = array_keys($bindPatientDiseaseInfo);
foreach($patientDiseaseInfo as $key => $patientDisease)
{
//$checkedStr = in_array($key, $bindIds) ? "checked='checked'" : "";;
?>
<p class="mt10 f14">
<input type="checkbox" class="vm2" value="<?=$key?>" name="diseasekey[]"/>
<label class="fb f14 ml10">疾病:</label><?=XString::changeBlank2nbspAndLtrim($patientDisease->diseaseName)?>
</p>
<?php
}
?>
</div>
<div class="addMsg pr mt40 zoom">
<p><a href="javascript:" class="addMsg-btn blue" id="addDisMsg-btn">新增疾病信息</a></p>
<div class="addMsg-Box pa top36" id="addDisMsg-Box" style="display: none;">
<p id="diseaseErr">
<label class="f14 gray">新增所患疾病名称:</label>
<input type="text" class="zxPost-input253 vm " id="dis"/>
<em class="red">*</em><span class="gray4 f14">(字数限制2-20个字)</span>
</p>
<p class="mt10">
示例8: foreach
<?php
$medicineInfos = $intention->getMedicineInfos();
if(isset($medicineInfos) && false == empty($medicineInfos))
{
?>
<div class="lh180 pt10 pb20">
<p class="pb5 pt10">用药情况:</p>
<?php
foreach ($medicineInfos as $key => $medicineInfo)
{ ?>
<div class="bt_e5 pb15 medicineinfo" id="<?=$key?>">
<div class="pt5 psr clearfix">
<p class="pt5 gray6">药物名称:</p>
<p class="fl mr50"><input type="text" formatcategory="medicineName" name="intentionInfos[<?=$key?>][<?=Intention::MEDICINEINFOS?>][medicineName]" class="load_input2 grayc medicinename" value="<?=isset($askUpdateMemory['medicineInfos'][$key]['medicineName']) ? $askUpdateMemory['medicineInfos'][$key]['medicineName'] : XString::changeBlank2nbspAndLtrim($medicineInfo->medicineName)?>" /></p>
</div>
<div class="psr clearfix">
<p class="pt5 gray6">服用说明:</p>
<p class="fl mr50"><input type="text" formatcategory="medicineDesc" name="intentionInfos[<?=$key?>][<?=Intention::MEDICINEINFOS?>][medicineDesc]" class="load_input2 grayc medicineuseinfo" value="<?=isset($askUpdateMemory['medicineInfos'][$key]['medicineDesc']) ? $askUpdateMemory['medicineInfos'][$key]['medicineDesc'] : nl2br(XString::changeBlank2nbspAndLtrim($medicineInfo->medicineDesc))?>" /></p>
<p class="delete_edit pt45"><a class="fr blue_1 del" href="javascript:;" onclick="return deletePartOfIntentionContent('<?=Intention::MEDICINEINFOS?>', <?=$key?>)">删除</a></p>
</div>
</div>
<?php } ?>
<?php } ?>
示例9:
<?php
if(isset($treatementInfo['endTime']))
{
?>
至 <?=substr($treatementInfo['endTime'],0,10)?>
<?php
}
?>
</p>
<p>
<span class="fb">医院科室:</span><?=XString::changeBlank2nbspAndLtrim(isset($treatementInfo['treatedHospital']['hospitalName'])?$treatementInfo['treatedHospital']['hospitalName']:"未填")?> <?=XString::changeBlank2nbspAndLtrim(isset($treatementInfo['treatedHospital']['facultyName'])?$treatementInfo['treatedHospital']['facultyName']:"未填")?>
</p>
<div class="clearfix">
<span class="fb fl">治疗信息:</span>
<p class="oh zoom">
<?=XString::changeBlank2nbspAndLtrim(isset($treatementInfo['treatmentDesc'])?$treatementInfo['treatmentDesc']:"未填")?>
</p>
</div>
</div>
</div>
<div class="fr">
<input type="hidden" value="<?=$key?>" id="treatment"/>
<?php
if(AskSessionInfo::isCanDeletedTreatment($key) || isset($intention))
{
?>
<a href="javascript:" class="zxPost-del" formatcategory="<?=Intention::TREATMENTINFOS?>">删除</a>
<?php
}
?>
</div>
示例10: foreach
<p class="f17 black pd10 bb_e pl15">您当前正在服用的药物有:</p>
<?php
foreach($patientMedicineInfo as $key => $medicineInfo)
{
?>
<div class="f17 lh160 pad_15">
<div class="black clearfix bg_gf pad_10 mb10 b_ra3">
<p class="f19 fl pr20"><input type="checkbox" name="medicinekey[]" id="<?=$key?>" <?=in_array($key, $medicineKey) ? "checked" : ""?> class="checkbox_s1" value="<?=$key?>"></p>
<label for="<?=$key?>" hidefocus="true">
<div class="hh">
<p class="lh120">
药物名称:<span class="gray6"><?=XString::changeBlank2nbspAndLtrim($medicineInfo->medicineName)?>
</span>
</p>
<p class="pt5">
用药说明:<span class="gray6"><?=nl2br(XString::changeBlank2nbspAndLtrim($medicineInfo->medicineDesc))?></span>
</p>
</div>
</label>
</div>
</div>
<?php
}
?>
<p class="notice_icon1 f19"><a href="javascript:void(0)" onclick="newExperience('medicine');">新增第<?=count($patientMedicineInfo) + 1?>种药物</a></p>
<div class="pub_btn mt10 ml15 mr15">
<a href="javascript:;" onclick="$('#form1').submit();">下一步</a>
</div>
</form>
</div>
</div>
示例11:
<?php
$content = $intention->getContents();
if(false == empty($content))
{
$content = XString::changeBlank2nbspAndLtrim($content);
if (isset($askUpdateMemory['contents']))
{
$arr = array_shift($askUpdateMemory['contents']);
$content = $arr['contents'];
}
?>
<div class="item">
<p class="pb10 clearfix"><span class="fl">×ÉѯÄÚÈÝ</span></p>
<p>
<textarea class="load_input3 grayc" id="contentinfo" formatcategory="<?=Intention::CONTENTS?>" name="intentionInfos[][<?=Intention::CONTENTS?>][contents] " value="<?=$content?>"><?=$content?></textarea>
</p>
</div>
<?php
}
?>
示例12:
<?php
if($treatement->endTime)
{
?>
至 <?=substr($treatement->endTime,0,10)?>
<?php
}
?>
</p>
<p>
<span class="fb">医院科室:</span><?=XString::changeBlank2nbspAndLtrim($hosInfo->hospitalName?$hosInfo->hospitalName:"未填")?> <?=XString::changeBlank2nbspAndLtrim($hosInfo->facultyName?$hosInfo->facultyName:"未填")?>
</p>
<div class="clearfix">
<span class="fb fl">治疗信息:</span>
<p class="oh zoom">
<?=XString::changeBlank2nbspAndLtrim($treatement->treatmentDesc?$treatement->treatmentDesc:"未填")?>
</p>
</div>
</div>
</div>
<div class="fr">
<input type="hidden" value="<?=$key?>" id="treatment"/>
<?php
if(AskSessionInfo::isCanDeletedTreatment($key) || isset($post))
{
?>
<a href="javascript:" class="zxPost-del">删除</a>
<?php
}
?>
</div>
示例13: header
<?php header("Content-Type:text/html; charset=gb2312");
?>
<?=isset($hopeHelp)?nl2br(XString::changeBlank2nbspAndLtrim($hopeHelp)):nl2br(XString::changeBlank2nbspAndLtrim($hopeHelp))?>
<script>
$('#intentionId').val('<?=$intention->id?>');
</script>
示例14:
<?php
header("Content-Type:text/html; charset=gb2312");
?>
<p>
<span class="fb">药物名称:</span><?=XString::changeBlank2nbspAndLtrim($medicineInfo['medicineName'])?>
</p>
<div class="clearfix">
<span class="fb fl">用药说明:</span>
<p class="oh zoom">
<?=nl2br(XString::changeBlank2nbspAndLtrim($medicineInfo['medicineDesc']))?>
</p>
</div>
<script>
$('#medicinekey'+<?=$num?>).val('<?=$medicineKey?>_<?=$num?>');
$('#intentionId').val('<?=$intention->id?>');
</script>
示例15: foreach
<?php
$hospitalInfos = $intention->getHospitalInfos();
if(false == empty($hospitalInfos)){
?>
<div class="lh180 pb20">
<p class="pb5">医院科室:</p>
<?php foreach ($hospitalInfos as $key => $hospitalInfo) { ?>
<div class="bt_e5 pt10 pb15 hospitalfacultyinfo" id="<?=$key?>">
<div class="pt5 psr clearfix">
<p class="fl pt5 gray6">医院:</p>
<p class="fl mr50"><input type="text" formatcategory="hospitalName" name="intentionInfos[<?=$key?>][<?=Intention::HOSPITALINFOS?>][hospitalName]" class="load_input2 grayc hospitalinfo" id="<?=$key?>" value="<?=isset($askUpdateMemory['hospitalInfos'][$key]['hospitalName']) ? $askUpdateMemory['hospitalInfos'][$key]['hospitalName'] : XString::changeBlank2nbspAndLtrim(isset($hospitalInfo->hospitalName)?$hospitalInfo->hospitalName:'')?>" /></p>
<p class="delete_edit pt10"><a class="fr blue_1 del" href="javascript:;" onclick="return deletePartOfIntentionContent('<?=Intention::HOSPITALINFOS?>', <?=$key?>)">删除</a></p>
</div>
<div class="pt5 psr clearfix">
<p class="fl pt5 gray6">科室:</p>
<p class="fl mr50"><input type="text" formatcategory="facultyName" name="intentionInfos[<?=$key?>][<?=Intention::HOSPITALINFOS?>][facultyName]" class="load_input2 grayc facultyinfo" value="<?=isset($askUpdateMemory['hospitalInfos'][$key]['facultyName']) ? $askUpdateMemory['hospitalInfos'][$key]['facultyName'] : XString::changeBlank2nbspAndLtrim(isset($hospitalInfo->facultyName)?$hospitalInfo->facultyName:'')?>" /></p>
</div>
</div>
<?php } ?>
</div>
<?php } ?>