当前位置: 首页>>代码示例>>PHP>>正文


PHP osc_esc_html函数代码示例

本文整理汇总了PHP中osc_esc_html函数的典型用法代码示例。如果您正苦于以下问题:PHP osc_esc_html函数的具体用法?PHP osc_esc_html怎么用?PHP osc_esc_html使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了osc_esc_html函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: addTableHeader

 private function addTableHeader()
 {
     $arg_date = '&sort=date';
     if (Params::getParam('sort') == 'date') {
         if (Params::getParam('direction') == 'desc') {
             $arg_date .= '&direction=asc';
         }
     }
     $arg_item = '&sort=attached_to';
     if (Params::getParam('sort') == 'attached_to') {
         if (Params::getParam('direction') == 'desc') {
             $arg_item .= '&direction=asc';
         }
     }
     Rewrite::newInstance()->init();
     $page = (int) Params::getParam('iPage');
     if ($page == 0) {
         $page = 1;
     }
     Params::setParam('iPage', $page);
     $url_base = preg_replace('|&direction=([^&]*)|', '', preg_replace('|&sort=([^&]*)|', '', osc_base_url() . Rewrite::newInstance()->get_raw_request_uri()));
     $this->addColumn('bulkactions', '<input id="check_all" type="checkbox" />');
     $this->addColumn('file', __('File'));
     $this->addColumn('action', __('Action'));
     $this->addColumn('attached_to', '<a href="' . osc_esc_html($url_base . $arg_item) . '">' . __('Attached to') . '</a>');
     $this->addColumn('date', '<a href="' . osc_esc_html($url_base . $arg_date) . '">' . __('Date') . '</a>');
     $dummy =& $this;
     osc_run_hook("admin_media_table", $dummy);
 }
开发者ID:mylastof,项目名称:os-class,代码行数:29,代码来源:MediaDataTable.php

示例2: autocompleteCity

function autocompleteCity()
{
    ?>
    <script type="text/javascript">
    $(function() {
                    function log( message ) {
                        $( "<div/>" ).text( message ).prependTo( "#log" );
                        $( "#log" ).attr( "scrollTop", 0 );
                    }

                    $( "#sCity" ).autocomplete({
                        source: "<?php 
    echo osc_base_url(true);
    ?>
?page=ajax&action=location",
                        minLength: 2,
                        select: function( event, ui ) {
                            $("#sRegion").attr("value", ui.item.region);
                            log( ui.item ?
                                "<?php 
    echo osc_esc_html(__('Selected', 'bender'));
    ?>
: " + ui.item.value + " aka " + ui.item.id :
                                "<?php 
    echo osc_esc_html(__('Nothing selected, input was', 'bender'));
    ?>
 " + this.value );
                        }
                    });
                });
    </script>
    <?php 
}
开发者ID:mylastof,项目名称:os-class,代码行数:33,代码来源:search.php

示例3: generic_input_checkbox

 protected static function generic_input_checkbox($name, $value, $checked = false)
 {
     echo '<input id="' . $name . '" type="checkbox" name="' . $name . '" value="' . osc_esc_html(htmlentities($value, ENT_COMPAT, "UTF-8")) . '" ';
     if ($checked) {
         echo 'checked="checked" ';
     }
     echo '/>';
 }
开发者ID:randomecho,项目名称:OSClass,代码行数:8,代码来源:Form.form.class.php

示例4: printLocaleTitlePage

function printLocaleTitlePage($locales = null, $page = null)
{
    if ($locales == null) {
        $locales = osc_get_locales();
    }
    $aFieldsDescription = Session::newInstance()->_getForm("aFieldsDescription");
    $num_locales = count($locales);
    foreach ($locales as $locale) {
        $title = '';
        if (isset($page['locale'][$locale['pk_c_code']])) {
            $title = $page['locale'][$locale['pk_c_code']]['s_title'];
        }
        if (isset($aFieldsDescription[$locale['pk_c_code']]) && isset($aFieldsDescription[$locale['pk_c_code']]['s_title']) && $aFieldsDescription[$locale['pk_c_code']]['s_title'] != '') {
            $title = $aFieldsDescription[$locale['pk_c_code']]['s_title'];
        }
        $name = $locale['pk_c_code'] . '#s_title';
        echo '<div><label for="title">' . __('Title') . ' *</label>';
        echo '<div class="input-has-placeholder input-title-wide"><label for="title">' . __('Enter title here') . ' *</label>';
        echo '<input id="' . $name . '" type="text" name="' . $name . '" value="' . osc_esc_html(htmlentities($title, ENT_COMPAT, "UTF-8")) . '"  />';
        echo '</div>';
    }
}
开发者ID:semul,项目名称:Osclass,代码行数:22,代码来源:functions.php

示例5: _e

                </div>
                <div class="form-row">
                    <div class="form-label"><?php 
_e('E-mail user whenever');
?>
</div>
                    <div class="form-controls">
                        <div class="form-label-checkbox">
                            <label>
                                <input type="checkbox" <?php 
echo osc_notify_new_comment_user() ? 'checked="checked"' : '';
?>
 name="notify_new_comment_user" value="1" /> <?php 
_e("There's a new comment on his listing");
?>
                            </label>
                        </div>
                    </div>
                </div>
                <div class="form-actions">
                    <input type="submit" id="save_changes" value="<?php 
echo osc_esc_html(__('Save changes'));
?>
" class="btn btn-submit" />
                </div>
            </div>
        </fieldset>
    </form>
</div>
<?php 
osc_current_admin_theme_path('parts/footer.php');
开发者ID:oanav,项目名称:closetshare,代码行数:31,代码来源:comments.php

示例6: osc_base_url

        <ul id="error_list"></ul>
        <form name="sendfriend" action="<?php 
echo osc_base_url(true);
?>
" method="post" >
            <input type="hidden" name="action" value="send_friend_post" />
            <input type="hidden" name="page" value="item" />
            <input type="hidden" name="id" value="<?php 
echo osc_item_id();
?>
" />
            <?php 
if (osc_is_web_user_logged_in()) {
    ?>
                            <input type="hidden" name="yourName" value="<?php 
    echo osc_esc_html(osc_logged_user_name());
    ?>
" />
                            <input type="hidden" name="yourEmail" value="<?php 
    echo osc_logged_user_email();
    ?>
" />
            <?php 
} else {
    ?>
            <div class="control-group">
                <label class="control-label" for="yourName"><?php 
    _e("Your name", 'bender');
    ?>
</label>
                <div class="controls ">
开发者ID:mylastof,项目名称:os-class,代码行数:31,代码来源:item-send-friend.php

示例7: osc_item_url

            echo $size[1];
            ?>
" class="img-responsive"></a>
            <?php 
        }
        ?>
            <?php 
    }
    ?>
            <div class="info">
                <div class="detail_info">
                    <h4><a href="<?php 
    echo osc_item_url();
    ?>
" title="<?php 
    echo osc_esc_html(osc_item_title());
    ?>
"><?php 
    echo osc_item_title();
    ?>
</a><span><?php 
    _e('Premium', 'osclasswizards');
    ?>
</span></h4>
                    <div class="listing-attributes">
                        <?php 
    if (osc_price_enabled_at_items()) {
        ?>
                        <div class="currency-value">
                            <?php 
        echo osc_format_price(osc_item_price());
开发者ID:oanav,项目名称:closetshare,代码行数:31,代码来源:loop-user-grid.php

示例8: printf

?>
</div>
                    </div>

                    <div class="form-row">
                        <div class="form-controls"><?php 
printf(__('Spam listings deleted: %d', 'butler'), osc_get_preference('spam_listings', 'butler'));
?>
</div>
                    </div>

                    <div class="form-row">
                        <div class="form-controls"><?php 
printf(__('Inactivated users deleted: %d', 'butler'), osc_get_preference('activated_users', 'butler'));
?>
</div>
                    </div>

                    <div class="clear"></div>
                    <div class="form-actions">
                        <input type="submit" id="save_changes" value="<?php 
echo osc_esc_html(__('Run Butler now'));
?>
" class="btn btn-submit" />
                    </div>

                </div>
            </fieldset>
        </form>
    </div>
</div>
开发者ID:syedfiraat4,项目名称:bikade.com,代码行数:31,代码来源:stats.php

示例9: osc_user

                                    <?php 
    if (bender_default_location_show_as() == 'dropdown') {
        ItemForm::region_select(osc_get_regions(osc_user_field('fk_c_country_code')), osc_user());
    } else {
        ItemForm::region_text(osc_user());
    }
    ?>
                                </div>
                            </div>
                            <?php 
} else {
    $aCountries = osc_get_countries();
    $aRegions = osc_get_regions($aCountries[0]['pk_c_code']);
    ?>
                            <input type="hidden" id="countryId" name="countryId" value="<?php 
    echo osc_esc_html($aCountries[0]['pk_c_code']);
    ?>
"/>
                            <div class="control-group">
                                <label class="control-label" for="region"><?php 
    _e('Region', 'bender');
    ?>
</label>
                                <div class="controls">
                                  <?php 
    if (bender_default_location_show_as() == 'dropdown') {
        ItemForm::region_select($aRegions, osc_user());
    } else {
        ItemForm::region_text(osc_user());
    }
    ?>
开发者ID:mylastof,项目名称:os-class,代码行数:31,代码来源:item-post.php

示例10: osc_locale_code

							<?php 
ItemForm::title_input('title', osc_locale_code(), osc_esc_html(flatter_item_title()));
?>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label" for="description[<?php 
echo osc_locale_code();
?>
]"><?php 
_e('Description', 'flatter');
?>
</label>
                        <div  class="col-sm-8">
                            <?php 
ItemForm::description_textarea('description', osc_locale_code(), osc_esc_html(flatter_item_description()));
?>
                        </div>
                    </div>
                    <?php 
if (osc_price_enabled_at_items()) {
    ?>
                    <div class="form-group price-group">
                        <label class="col-sm-3 control-label" for="price"><?php 
    _e('Price', 'flatter');
    ?>
</label>
                        <div class="col-sm-8" id="price">
                            <?php 
    ItemForm::price_input_text();
    ?>
开发者ID:abhi143u11,项目名称:ads,代码行数:31,代码来源:item-post.php

示例11: _e

_e('OSClass is a free, open-source project, sustained by the community. Money received from donations will be used to further development and improve the project.');
?>
</p>
                                <div class="form-row">
                                    <div class="form-controls">
                                        <select name="amount" class="select-box-medium">
                                            <option value="50">50$</option>
                                            <option value="25">25$</option>
                                            <option value="10" selected>10$</option>
                                            <option value="5">5$</option>
                                            <option value=""><?php 
_e('Custom');
?>
</option>
                                        </select><input type="submit" class="btn btn-mini" name="submit" value="<?php 
echo osc_esc_html(__('Donate'));
?>
">
                                    </div>
                                </div>
                            </div>
                        </fieldset>
                    </form>
                </div>
            </div>
        </div>
    </div>
    <div class="grid-row grid-50">
        <div class="row-wrapper">
            <div class="widget-box">
                <div class="widget-box-title"><h3><?php 
开发者ID:semul,项目名称:Osclass,代码行数:31,代码来源:index.php

示例12: _e

    _e('Your purchased items on Osclass Market will automatically appear on My Purchases tab.');
    ?>
            </p>
            <p>
                <input type="text" name="connect_user" id="connect_user" value="" placeholder="<?php 
    _e('Your market email');
    ?>
"/>
                <input type="password" name="connect_password" id="connect_password" value="" placeholder="<?php 
    _e('Your market password');
    ?>
"/>
            </p>
        </div>
        <div class="form-actions">
            <div class="wrapper">
                <a id="connect-cancel" class="btn" href="javascript:void(0);"><?php 
    _e('Cancel');
    ?>
</a>
                <a id="connect-submit" href="javascript:void(0);" class="btn" ><?php 
    echo osc_esc_html(__('Connect'));
    ?>
</a>
                <div class="clear"></div>
            </div>
        </div>
    </div>
</div>
<?php 
}
开发者ID:naneri,项目名称:Osclass,代码行数:31,代码来源:header.php

示例13: osc_user_public_profile_url

echo osc_user_public_profile_url(osc_logged_user_id());
?>
"><?php 
_e('Public profile', 'pop');
?>
</a>
            </div>
        </div>
       <div class="user-menu box">
    <?php 
echo osc_private_user_menu(get_user_menu());
?>
           </div>
</div>
</div>
<div id="dialog-delete-account" title="<?php 
echo osc_esc_html(__('Delete account', 'pop'));
?>
">
<?php 
_e('Are you sure you want to delete your account?', 'pop');
?>
</div>
<script>
    $("#dialog-delete-account").dialog({
        autoOpen: false,
        modal: true,
        width: 350
    });
</script>
开发者ID:oanav,项目名称:closetshare,代码行数:30,代码来源:user-sidebar.php

示例14: osc_base_url

    }
    ?>
  <div class="banner_none" id="form_vh_map">
    <form action="<?php 
    echo osc_base_url(true);
    ?>
" id="main_search" method="get" class="search nocsrf" >
      <div class="container">
        <input type="hidden" name="page" value="search"/>
        <div class="main-search">
          <div class="form-filters">
            <div class="row">
              <div class="col-md-4">
                <div class="cell">
                  <input type="text" name="sPattern" id="query" class="input-text" value="" placeholder="<?php 
    echo osc_esc_html(__(osc_get_preference('keyword_placeholder', 'osclasswizards_theme'), OSCLASSWIZARDS_THEME_FOLDER));
    ?>
" />
                </div>
              </div>
              <div class="col-md-3">
                <?php 
    if (osc_count_categories()) {
        ?>
                <div class="cell selector">
                  <?php 
        osc_categories_select('sCategory', null, __('Select a category', OSCLASSWIZARDS_THEME_FOLDER));
        ?>
                </div>
                <?php 
    }
开发者ID:bomvendador,项目名称:soroka_r,代码行数:31,代码来源:header.php

示例15: __get

 *
 * You should have received a copy of the GNU Affero General Public
 * License along with this program. If not, see <http://www.gnu.org/licenses/>.
 */
$page = __get('page');
$locales = OSCLocale::newInstance()->listAllEnabled();
if (isset($page['pk_i_id'])) {
    $edit = true;
    $title = __('Edit page');
    $action_frm = 'edit_post';
    $btn_text = osc_esc_html(__('Save changes'));
} else {
    $edit = false;
    $title = __('Add page');
    $action_frm = 'add_post';
    $btn_text = osc_esc_html(__('Add page'));
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">
    <head>
        <?php 
osc_current_admin_theme_path('head.php');
?>
        <script type="text/javascript" src="<?php 
echo osc_current_admin_theme_js_url('tiny_mce/tiny_mce.js');
?>
"></script>
        <script type="text/javascript">
            tinyMCE.init({
                mode : "textareas",
开发者ID:randomecho,项目名称:OSClass,代码行数:31,代码来源:frm.php


注:本文中的osc_esc_html函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。