Пример #1
0
assets/mini-upload-image/css/style.css" rel="stylesheet" >
<div class="row">
    <div class="col-lg-12 col-md-12 col-xs-12">
        <section class="panel">
            <header class="panel-heading">
                <?php 
echo $title;
?>
 <?php 
echo isset($data['title']) ? _l("Edit", $this) . " " . $data['title'] : _l("Add", $this);
?>
            </header>
            <div class="panel-body">
                <div class=" form">
                    <?php 
mk_hpostform($base_url . $page . "_manipulate" . (isset($data['article_id']) ? "/" . $data['article_id'] : ""));
mk_hselect("data[article_type]", _l('page type', $this), $page_type, "id", "name", isset($data['article_type']) ? $data['article_type'] : null, null, 'style="width:400px"');
mk_hurl_upload("data[avatar]", _l('avatar', $this), isset($data['avatar']) ? $data['avatar'] : '', "avatar");
mk_htext("data[article_name]", _l('article Name', $this), isset($data['article_name']) ? $data['article_name'] : '');
foreach ($languages as $item) {
    mk_htext("data[titles][" . $item["language_id"] . "]", _l('article name', $this) . " (" . $item["language_name"] . ")", isset($titles[$item["language_id"]]) ? $titles[$item["language_id"]]["title_caption"] : "");
}
mk_hnumber("data[article_order]", _l('article order', $this), isset($data['article_order']) ? $data['article_order'] : '');
mk_hcheckbox("data[article_dynamic]", _l('Active extensions search', $this), isset($data['article_dynamic']) && $data['article_dynamic'] == 1 ? 1 : null);
mk_hcheckbox("data[preview]", _l('preview', $this), isset($data['preview']) && $data['preview'] == 1 ? 1 : null);
mk_hcheckbox("data[public]", _l('public', $this), isset($data['public']) && $data['public'] == 1 ? 1 : null);
mk_hcheckbox("data[default]", _l('default', $this), isset($data['default']) && $data['default'] == 1 ? 1 : null);
mk_hsubmit(_l('Submit', $this), $base_url . $page, _l('Cancel', $this));
mk_closeform();
?>
                </div>
Пример #2
0
admin/settings/contact"><?php 
echo _l('Contact settings', $this);
?>
</a></li>
    <li role="presentation" class="active"><a href="javascript:;"><?php 
echo _l('Send mail settings', $this);
?>
</a></li>
</ul>
<div class="row">
    <div class="col-lg-12 col-md-12 col-xs-12">
        <section class="panel">
            <div class="panel-body">
                <div class=" form">
                    <?php 
mk_hpostform();
?>
                    <div class="form-group ">
                        <label class="control-label col-lg-2"><?php 
echo _l('Email protocol', $this);
?>
</label>
                        <div class="col-lg-10 col-sm-10">
                            <div class="btn-group">
                                <label class="btn btn-default"><input onchange="if($(this).is(':checked')){ $('.smtp_options').slideDown(500); }" name="data[use_smtp]" type="radio" value="1" checked> <?php 
echo _l('SMTP-protocol', $this);
?>
</label>
                                <label class="btn btn-default"><input onchange="if($(this).is(':checked')){ $('.smtp_options').slideUp(500); }" name="data[use_smtp]" type="radio" value="0" <?php 
echo isset($settings['use_smtp']) && $settings['use_smtp'] == 0 ? 'checked' : '';
?>
Пример #3
0
<div class="row">
    <div class="col-lg-12 col-md-12 col-xs-12">
        <section class="panel">
            <header class="panel-heading">
                <?php 
echo $title;
?>
 <?php 
echo isset($data['title']) ? _l("Edit", $this) . " " . $data['title'] : _l("Add", $this);
?>
            </header>
            <div class="panel-body">
                <div class=" form">
                    <?php 
mk_hpostform($base_url . $page . "_manipulate" . (isset($data['currency_id']) ? "/" . $data['currency_id'] : ""));
mk_htext("data[title]", _l('currency Name', $this), isset($data['title']) ? $data['title'] : '');
mk_htext("data[code]", _l('currency Code', $this), isset($data['code']) ? $data['code'] : '');
mk_htext("data[symbol_left]", _l('Symbol Left', $this), isset($data['symbol_left']) ? $data['symbol_left'] : '');
mk_htext("data[symbol_right]", _l('Symbol Right', $this), isset($data['symbol_right']) ? $data['symbol_right'] : '');
mk_hnumber("data[value]", _l('Value', $this), isset($data['value']) ? $data['value'] : '');
mk_hcheckbox("data[status]", _l('status', $this), isset($data['status']) && $data['status'] == 1 ? 1 : null);
mk_hcheckbox("data[default]", _l('Default', $this), isset($data['default']) && $data['default'] == 1 ? 1 : null);
mk_hsubmit(_l('Submit', $this), $base_url . $page, _l('Cancel', $this));
mk_closeform();
?>
                </div>
            </div>
        </section>
    </div>
</div>
Пример #4
0
?>
<div class="row">
    <div class="col-lg-12 col-md-12 col-xs-12">
        <section class="panel">
            <header class="panel-heading">
                <?php 
echo $title;
?>
 <?php 
echo isset($data['title']) ? _l("Edit", $this) . " " . $data['title'] : _l("Add", $this);
?>
            </header>
            <div class="panel-body">
                <div class=" form">
                    <?php 
mk_hpostform($base_url . $page . "_manipulate" . (isset($data['extension_id']) ? "/" . $data['extension_id'] : ""));
mk_hselect("data[language_id]", _l('language', $this), $languages, "language_id", "language_name", isset($data['language_id']) ? $data['language_id'] : null, null, 'style="width:200px"');
if (isset($page_type) && allowed_extension_fields("icon", $page_type)) {
    mk_hselect_faicon("data[extension_icon]", _l('Icon', $this), $faicons, isset($data['extension_icon']) ? $data['extension_icon'] : null, null, 'style="width:200px"');
}
mk_htext("data[name]", _l('extension Name', $this), isset($data['name']) ? $data['name'] : '');
if (isset($page_type) && allowed_extension_fields("description", $page_type)) {
    mk_htexteditor("data[description]", _l('extension description', $this), isset($data['description']) ? $data['description'] : '');
}
if (isset($page_type) && allowed_extension_fields("full_description", $page_type)) {
    mk_htexteditor("data[full_description]", _l('extension full description', $this), isset($data['full_description']) ? $data['full_description'] : '');
}
if (isset($page_type) && allowed_extension_fields("image", $page_type)) {
    mk_hurl_upload("data[image]", _l('image', $this), isset($data['image']) ? $data['image'] : '', "image");
}
if (isset($page_type) && allowed_extension_fields("order", $page_type)) {
Пример #5
0
                        </div>
                    </b>
                <?php 
} else {
    ?>
                    <?php 
    echo _l("Add", $this);
    ?>
                <?php 
}
?>
            </header>
            <div class="panel-body">
                <div class=" form">
                    <?php 
mk_hpostform($base_url . "edit_lang_file" . (isset($data['language_id']) ? "/" . $data['language_id'] : "") . (isset($file_name) ? "/" . $file_name : ""));
if (isset($lang_list) && count($lang_list) != '') {
    $i = 0;
    ?>
                        <table class="table">
                            <tr>
                                <th><?php 
    echo _l('Language Key', $this);
    ?>
</th>
                                <th><?php 
    echo _l('Show in Website', $this);
    ?>
</th>
                            </tr>
                            <?php