本文整理汇总了PHP中ew_SameStr函数的典型用法代码示例。如果您正苦于以下问题:PHP ew_SameStr函数的具体用法?PHP ew_SameStr怎么用?PHP ew_SameStr使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了ew_SameStr函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ew_HtmlEncode
>
<span id="el_card_BANK_ID">
<select data-table="card" data-field="x_BANK_ID" data-value-separator="<?php
echo ew_HtmlEncode(is_array($card->BANK_ID->DisplayValueSeparator) ? json_encode($card->BANK_ID->DisplayValueSeparator) : $card->BANK_ID->DisplayValueSeparator);
?>
" id="x_BANK_ID" name="x_BANK_ID"<?php
echo $card->BANK_ID->EditAttributes();
?>
>
<?php
if (is_array($card->BANK_ID->EditValue)) {
$arwrk = $card->BANK_ID->EditValue;
$rowswrk = count($arwrk);
$emptywrk = TRUE;
for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
$selwrk = ew_SameStr($card->BANK_ID->CurrentValue, $arwrk[$rowcntwrk][0]) ? " selected" : "";
if ($selwrk != "") {
$emptywrk = FALSE;
}
?>
<option value="<?php
echo ew_HtmlEncode($arwrk[$rowcntwrk][0]);
?>
"<?php
echo $selwrk;
?>
>
<?php
echo $card->BANK_ID->DisplayValue($arwrk[$rowcntwrk]);
?>
</option>
示例2: ew_HtmlEncode
?>
<span id="el_images_p_id">
<select data-table="images" data-field="x_p_id" data-value-separator="<?php
echo ew_HtmlEncode(is_array($images->p_id->DisplayValueSeparator) ? json_encode($images->p_id->DisplayValueSeparator) : $images->p_id->DisplayValueSeparator);
?>
" id="x_p_id" name="x_p_id"<?php
echo $images->p_id->EditAttributes();
?>
>
<?php
if (is_array($images->p_id->EditValue)) {
$arwrk = $images->p_id->EditValue;
$rowswrk = count($arwrk);
$emptywrk = TRUE;
for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
$selwrk = ew_SameStr($images->p_id->CurrentValue, $arwrk[$rowcntwrk][0]) ? " selected" : "";
if ($selwrk != "") {
$emptywrk = FALSE;
}
if ($selwrk != "" || $arwrk[$rowcntwrk][0] == "") {
?>
<option value="<?php
echo ew_HtmlEncode($arwrk[$rowcntwrk][0]);
?>
"<?php
echo $selwrk;
?>
>
<?php
echo $images->p_id->DisplayValue($arwrk[$rowcntwrk]);
?>
示例3: ew_HtmlEncode
>
<span id="el_delivery_category">
<select data-table="delivery" data-field="x_category" data-value-separator="<?php
echo ew_HtmlEncode(is_array($delivery->category->DisplayValueSeparator) ? json_encode($delivery->category->DisplayValueSeparator) : $delivery->category->DisplayValueSeparator);
?>
" id="x_category" name="x_category"<?php
echo $delivery->category->EditAttributes();
?>
>
<?php
if (is_array($delivery->category->EditValue)) {
$arwrk = $delivery->category->EditValue;
$rowswrk = count($arwrk);
$emptywrk = TRUE;
for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
$selwrk = ew_SameStr($delivery->category->CurrentValue, $arwrk[$rowcntwrk][0]) ? " selected" : "";
if ($selwrk != "") {
$emptywrk = FALSE;
}
?>
<option value="<?php
echo ew_HtmlEncode($arwrk[$rowcntwrk][0]);
?>
"<?php
echo $selwrk;
?>
>
<?php
echo $delivery->category->DisplayValue($arwrk[$rowcntwrk]);
?>
</option>
示例4: count
echo $sub_category_list->RowIndex;
?>
_category_id" name="x<?php
echo $sub_category_list->RowIndex;
?>
_category_id"<?php
echo $sub_category->category_id->EditAttributes();
?>
>
<?php
if (is_array($sub_category->category_id->EditValue)) {
$arwrk = $sub_category->category_id->EditValue;
$rowswrk = count($arwrk);
$emptywrk = TRUE;
for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
$selwrk = ew_SameStr($sub_category->category_id->CurrentValue, $arwrk[$rowcntwrk][0]) ? " selected" : "";
if ($selwrk != "") {
$emptywrk = FALSE;
}
if ($selwrk != "" || $arwrk[$rowcntwrk][0] == "") {
?>
<option value="<?php
echo ew_HtmlEncode($arwrk[$rowcntwrk][0]);
?>
"<?php
echo $selwrk;
?>
>
<?php
echo $sub_category->category_id->DisplayValue($arwrk[$rowcntwrk]);
?>
示例5: GetUserLevelID
function GetUserLevelID($UserLevelName)
{
global $Language;
if (ew_SameStr($UserLevelName, "Anonymous") || ew_SameStr($UserLevelName, $Language->Phrase("UserAnonymous"))) {
return -2;
} elseif (ew_SameStr($UserLevelName, "Administrator") || ew_SameStr($UserLevelName, $Language->Phrase("UserAdministrator"))) {
return -1;
} elseif (ew_SameStr($UserLevelName, "Default") || ew_SameStr($UserLevelName, $Language->Phrase("UserDefault"))) {
return 0;
} elseif ($UserLevelName != "") {
if (is_array($this->UserLevel)) {
foreach ($this->UserLevel as $row) {
list($levelid, $name) = $row;
if (ew_SameStr($name, $UserLevelName) || ew_SameStr($Language->Phrase($name), $UserLevelName)) {
return $levelid;
}
}
}
}
return -2;
}
示例6: ew_HtmlEncode
>
<span id="el_members_marea">
<select data-table="members" data-field="x_marea" data-value-separator="<?php
echo ew_HtmlEncode(is_array($members->marea->DisplayValueSeparator) ? json_encode($members->marea->DisplayValueSeparator) : $members->marea->DisplayValueSeparator);
?>
" id="x_marea" name="x_marea"<?php
echo $members->marea->EditAttributes();
?>
>
<?php
if (is_array($members->marea->EditValue)) {
$arwrk = $members->marea->EditValue;
$rowswrk = count($arwrk);
$emptywrk = TRUE;
for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
$selwrk = ew_SameStr($members->marea->AdvancedSearch->SearchValue, $arwrk[$rowcntwrk][0]) ? " selected" : "";
if ($selwrk != "") {
$emptywrk = FALSE;
}
?>
<option value="<?php
echo ew_HtmlEncode($arwrk[$rowcntwrk][0]);
?>
"<?php
echo $selwrk;
?>
>
<?php
echo $members->marea->DisplayValue($arwrk[$rowcntwrk]);
?>
</option>
示例7: ew_HtmlEncode
?>
<span id="el_categories_rid">
<select data-table="categories" data-field="x_rid" data-value-separator="<?php
echo ew_HtmlEncode(is_array($categories->rid->DisplayValueSeparator) ? json_encode($categories->rid->DisplayValueSeparator) : $categories->rid->DisplayValueSeparator);
?>
" id="x_rid" name="x_rid"<?php
echo $categories->rid->EditAttributes();
?>
>
<?php
if (is_array($categories->rid->EditValue)) {
$arwrk = $categories->rid->EditValue;
$rowswrk = count($arwrk);
$emptywrk = TRUE;
for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
$selwrk = ew_SameStr($categories->rid->CurrentValue, $arwrk[$rowcntwrk][0]) ? " selected" : "";
if ($selwrk != "") {
$emptywrk = FALSE;
}
?>
<option value="<?php
echo ew_HtmlEncode($arwrk[$rowcntwrk][0]);
?>
"<?php
echo $selwrk;
?>
>
<?php
echo $categories->rid->DisplayValue($arwrk[$rowcntwrk]);
?>
</option>
示例8: ew_HtmlEncode
>
<span id="el_vl_media_list_vl_media_type">
<select data-table="vl_media_list" data-field="x_vl_media_type" data-value-separator="<?php
echo ew_HtmlEncode(is_array($vl_media_list->vl_media_type->DisplayValueSeparator) ? json_encode($vl_media_list->vl_media_type->DisplayValueSeparator) : $vl_media_list->vl_media_type->DisplayValueSeparator);
?>
" id="x_vl_media_type" name="x_vl_media_type"<?php
echo $vl_media_list->vl_media_type->EditAttributes();
?>
>
<?php
if (is_array($vl_media_list->vl_media_type->EditValue)) {
$arwrk = $vl_media_list->vl_media_type->EditValue;
$rowswrk = count($arwrk);
$emptywrk = TRUE;
for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
$selwrk = ew_SameStr($vl_media_list->vl_media_type->CurrentValue, $arwrk[$rowcntwrk][0]) ? " selected" : "";
if ($selwrk != "") {
$emptywrk = FALSE;
}
?>
<option value="<?php
echo ew_HtmlEncode($arwrk[$rowcntwrk][0]);
?>
"<?php
echo $selwrk;
?>
>
<?php
echo $vl_media_list->vl_media_type->DisplayValue($arwrk[$rowcntwrk]);
?>
</option>
示例9: ew_HtmlEncode
<div style="white-space: nowrap;">
<span id="el_nos_members_has_expansion">
<select data-table="nos_members" data-field="x_has_expansion" data-page="1" data-value-separator="<?php
echo ew_HtmlEncode(is_array($nos_members->has_expansion->DisplayValueSeparator) ? json_encode($nos_members->has_expansion->DisplayValueSeparator) : $nos_members->has_expansion->DisplayValueSeparator);
?>
" id="x_has_expansion" name="x_has_expansion" size=3<?php
echo $nos_members->has_expansion->EditAttributes();
?>
>
<?php
if (is_array($nos_members->has_expansion->EditValue)) {
$arwrk = $nos_members->has_expansion->EditValue;
$rowswrk = count($arwrk);
$emptywrk = TRUE;
for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
$selwrk = ew_SameStr($nos_members->has_expansion->AdvancedSearch->SearchValue, $arwrk[$rowcntwrk][0]) ? " selected" : "";
if ($selwrk != "") {
$emptywrk = FALSE;
}
?>
<option value="<?php
echo ew_HtmlEncode($arwrk[$rowcntwrk][0]);
?>
"<?php
echo $selwrk;
?>
>
<?php
echo $nos_members->has_expansion->DisplayValue($arwrk[$rowcntwrk]);
?>
</option>
示例10: ew_HtmlEncode
>
<span id="el_expense_expense_cat">
<select data-table="expense" data-field="x_expense_cat" data-value-separator="<?php
echo ew_HtmlEncode(is_array($expense->expense_cat->DisplayValueSeparator) ? json_encode($expense->expense_cat->DisplayValueSeparator) : $expense->expense_cat->DisplayValueSeparator);
?>
" id="x_expense_cat" name="x_expense_cat"<?php
echo $expense->expense_cat->EditAttributes();
?>
>
<?php
if (is_array($expense->expense_cat->EditValue)) {
$arwrk = $expense->expense_cat->EditValue;
$rowswrk = count($arwrk);
$emptywrk = TRUE;
for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
$selwrk = ew_SameStr($expense->expense_cat->AdvancedSearch->SearchValue, $arwrk[$rowcntwrk][0]) ? " selected" : "";
if ($selwrk != "") {
$emptywrk = FALSE;
}
?>
<option value="<?php
echo ew_HtmlEncode($arwrk[$rowcntwrk][0]);
?>
"<?php
echo $selwrk;
?>
>
<?php
echo $expense->expense_cat->DisplayValue($arwrk[$rowcntwrk]);
?>
</option>
示例11: count
echo $products_grid->RowIndex;
?>
_scat_id" name="x<?php
echo $products_grid->RowIndex;
?>
_scat_id"<?php
echo $products->scat_id->EditAttributes();
?>
>
<?php
if (is_array($products->scat_id->EditValue)) {
$arwrk = $products->scat_id->EditValue;
$rowswrk = count($arwrk);
$emptywrk = TRUE;
for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
$selwrk = ew_SameStr($products->scat_id->CurrentValue, $arwrk[$rowcntwrk][0]) ? " selected" : "";
if ($selwrk != "") {
$emptywrk = FALSE;
}
if ($selwrk != "" || $arwrk[$rowcntwrk][0] == "") {
?>
<option value="<?php
echo ew_HtmlEncode($arwrk[$rowcntwrk][0]);
?>
"<?php
echo $selwrk;
?>
>
<?php
echo $products->scat_id->DisplayValue($arwrk[$rowcntwrk]);
?>
示例12: ew_HtmlEncode
>
<span id="el_members_marea">
<select data-table="members" data-field="x_marea" data-value-separator="<?php
echo ew_HtmlEncode(is_array($members->marea->DisplayValueSeparator) ? json_encode($members->marea->DisplayValueSeparator) : $members->marea->DisplayValueSeparator);
?>
" id="x_marea" name="x_marea"<?php
echo $members->marea->EditAttributes();
?>
>
<?php
if (is_array($members->marea->EditValue)) {
$arwrk = $members->marea->EditValue;
$rowswrk = count($arwrk);
$emptywrk = TRUE;
for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
$selwrk = ew_SameStr($members->marea->CurrentValue, $arwrk[$rowcntwrk][0]) ? " selected" : "";
if ($selwrk != "") {
$emptywrk = FALSE;
}
?>
<option value="<?php
echo ew_HtmlEncode($arwrk[$rowcntwrk][0]);
?>
"<?php
echo $selwrk;
?>
>
<?php
echo $members->marea->DisplayValue($arwrk[$rowcntwrk]);
?>
</option>
示例13: ew_HtmlEncode
?>
<span id="el_user_USER_LEVEL_ID">
<select data-table="user" data-field="x_USER_LEVEL_ID" data-value-separator="<?php
echo ew_HtmlEncode(is_array($user->USER_LEVEL_ID->DisplayValueSeparator) ? json_encode($user->USER_LEVEL_ID->DisplayValueSeparator) : $user->USER_LEVEL_ID->DisplayValueSeparator);
?>
" id="x_USER_LEVEL_ID" name="x_USER_LEVEL_ID"<?php
echo $user->USER_LEVEL_ID->EditAttributes();
?>
>
<?php
if (is_array($user->USER_LEVEL_ID->EditValue)) {
$arwrk = $user->USER_LEVEL_ID->EditValue;
$rowswrk = count($arwrk);
$emptywrk = TRUE;
for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
$selwrk = ew_SameStr($user->USER_LEVEL_ID->CurrentValue, $arwrk[$rowcntwrk][0]) ? " selected" : "";
if ($selwrk != "") {
$emptywrk = FALSE;
}
?>
<option value="<?php
echo ew_HtmlEncode($arwrk[$rowcntwrk][0]);
?>
"<?php
echo $selwrk;
?>
>
<?php
echo $user->USER_LEVEL_ID->DisplayValue($arwrk[$rowcntwrk]);
?>
</option>
示例14: ew_HtmlEncode
>
<span id="el_delivery_category">
<select data-table="delivery" data-field="x_category" data-value-separator="<?php
echo ew_HtmlEncode(is_array($delivery->category->DisplayValueSeparator) ? json_encode($delivery->category->DisplayValueSeparator) : $delivery->category->DisplayValueSeparator);
?>
" id="x_category" name="x_category"<?php
echo $delivery->category->EditAttributes();
?>
>
<?php
if (is_array($delivery->category->EditValue)) {
$arwrk = $delivery->category->EditValue;
$rowswrk = count($arwrk);
$emptywrk = TRUE;
for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
$selwrk = ew_SameStr($delivery->category->AdvancedSearch->SearchValue, $arwrk[$rowcntwrk][0]) ? " selected" : "";
if ($selwrk != "") {
$emptywrk = FALSE;
}
?>
<option value="<?php
echo ew_HtmlEncode($arwrk[$rowcntwrk][0]);
?>
"<?php
echo $selwrk;
?>
>
<?php
echo $delivery->category->DisplayValue($arwrk[$rowcntwrk]);
?>
</option>
示例15: strval
</span>
<span class="glyphicon glyphicon-remove form-control-feedback ewDropdownListClear"></span>
<span class="form-control-feedback"><span class="caret"></span></span>
<div id="dsl_x_division" data-repeatcolumn="1" class="dropdown-menu">
<div class="ewItems" style="position: relative; overflow-x: hidden;">
<?php
$arwrk = $nos_members->division->EditValue;
if (is_array($arwrk)) {
$armultiwrk = strval($nos_members->division->CurrentValue) != "" ? explode(",", strval($nos_members->division->CurrentValue)) : array();
$cnt = count($armultiwrk);
$rowswrk = count($arwrk);
$emptywrk = TRUE;
for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
$selwrk = "";
for ($ari = 0; $ari < $cnt; $ari++) {
if (ew_SameStr($arwrk[$rowcntwrk][0], $armultiwrk[$ari]) && !is_null($armultiwrk[$ari])) {
$armultiwrk[$ari] = NULL;
// Marked for removal
$selwrk = " checked";
if ($selwrk != "") {
$emptywrk = FALSE;
}
break;
}
}
?>
<input type="checkbox" data-table="nos_members" data-field="x_division" data-page="1" name="x_division[]" id="x_division_<?php
echo $rowcntwrk;
?>
[]" value="<?php
echo ew_HtmlEncode($arwrk[$rowcntwrk][0]);