本文整理匯總了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 } ?>