• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP set_param函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: test_param_check_passwords

 function test_param_check_passwords()
 {
     set_param('p1', '0');
     set_param('p2', '0');
     $this->assertTrue(param_check_passwords('p1', 'p2', true, 0));
     set_param('p1', '000000');
     set_param('p2', '000000 ');
     $this->assertFalse(param_check_passwords('p1', 'p2'));
     set_param('p1', '1');
     set_param('p2', '2');
     $this->assertFalse(param_check_passwords('p1', 'p2'));
 }
开发者ID:Ariflaw,项目名称:b2evolution,代码行数:12,代码来源:param.funcs.simpletest.php


示例2: check_default_settings

function check_default_settings()
{
    global $parprefix;
    $recset = mysql_query("SELECT * FROM parameter WHERE playerid=0 AND name='{$parprefix}:showartist'");
    if (mysql_num_rows($recset) < 1) {
        // set default values
        set_param("showartist", 1);
        set_param("showtitle", 1);
        set_param("showgenre", 1);
        set_param("showlang", 1);
        set_param("showyear", 1);
        set_param("showrating", 1);
        set_param("showlength", 1);
        set_param("showedit", 1);
        set_param("showdownload", 1);
        set_param("showtoplaylist", 1);
        set_param("brscolumns", 5);
        set_param("playtp", "dl");
    }
}
开发者ID:BackupTheBerlios,项目名称:gdrestfulwebint-svn,代码行数:20,代码来源:gdweb.php


示例3: get_ItemCache

        $ItemCache =& get_ItemCache();
        $Item =& $ItemCache->get_by_ID($p, false);
        if (empty($Item)) {
            $Messages->add(sprintf(T_('Front page is set to display page ID=%d but it does not exist.'), $p), 'error');
            $disp = '404';
        }
    }
} elseif (($disp == 'page' || $disp == 'single') && empty($Item)) {
    // 'page' and 'single' are not valid display params if $Item is not set
    // Note: The 'preview' action is the only one exception, but that is handled above in this if statement
    $disp = '404';
    $disp_detail = '404-post_not_found';
}
if ($disp == 'terms') {
    // Display a page of terms & conditions:
    set_param('p', intval($Settings->get('site_terms')));
    $c = 0;
    // Don't display comments
    $ItemCache =& get_ItemCache();
    $Item =& $ItemCache->get_by_ID($p, false);
    if (is_logged_in() && $UserSettings->get('terms_accepted', $current_User->ID)) {
        // Display the message if current user already accepted the terms:
        $Messages->add(T_('You already accepted these terms.'), 'success');
    }
    // Don't redirect to permanent url of the page:
    $redir = 'no';
}
// Check if terms & conditions should be accepted by current user:
if (is_logged_in() && !in_array($disp, array('terms', 'help', 'msgform', 'activateinfo')) && !$UserSettings->get('terms_accepted', $current_User->ID)) {
    // Current user didn't accept the terms yet:
    // Get ID of page with terms & conditions from global settings:
开发者ID:Ariflaw,项目名称:b2evolution,代码行数:31,代码来源:_blog_main.inc.php


示例4: memorize_param

/**
 * Set a param (global) & Memorize it for automatic future use in regenerate_url()
 *
 * @param string Variable to memorize
 * @param string Type of the variable
 * @param mixed Default value to compare to when regenerating url
 * @param mixed Value to set
 */
function memorize_param($var, $type, $default, $value = NULL)
{
    global $Debuglog, $global_param_list, ${$var};
    if (!isset($global_param_list)) {
        // Init list if necessary:
        if (isset($Debuglog)) {
            $Debuglog->add('init $global_param_list', 'params');
        }
        $global_param_list = array();
    }
    $Debuglog->add("memorize_param: {$var} {$type} default={$default}" . (is_null($value) ? '' : " value={$value}"), 'params');
    $global_param_list[$var] = array('type' => $type, 'default' => $default === true ? NULL : $default);
    if (!is_null($value)) {
        // We want to set the variable too.
        set_param($var, $value);
    }
}
开发者ID:LFSF,项目名称:oras,代码行数:25,代码来源:_param.funcs.php


示例5: print_all_reports

function print_all_reports()
{
    global $atskaite_veids;
    global $lang;
    global $translate;
    global $arrsum;
    global $C_REP;
    global $pavadzimes_tabula;
    global $output_pdf;
    global $output_xml;
    global $output_xml_dir;
    $arrfinal = array();
    $output = "";
    for ($grup = 1; $grup <= $_POST['grup']; $grup++) {
        //Valoda
        if (isset($_POST['valoda' . $grup])) {
            $lang = $_POST['valoda' . $grup];
        } else {
            $lang = 'LAT';
        }
        //        if($_POST['pavadzime']==''){$_POST['pavadzime_head'] = $mpav['pavadzime_head'];}
        if (trim($_POST['pavadzime']) != '') {
            $_POST['pavadzime_head'] = $_POST['pavadzime'];
        }
        set_param('akts_nr', $_POST['akts_nr_head']);
        set_param('pircejs_head', $_POST['pircejs_head']);
        set_param('pircejs_regnum', $_POST['pircejs_regnum']);
        set_param('pardevejs_head', $_POST['pardevejs_head']);
        set_param('pardevejs_regnum', $_POST['pardevejs_regnum']);
        set_param('pieg_lig_num', $_POST['pieg_lig_num']);
        set_param('datums', $_POST['datums_head']);
        set_param('iecirknis', $_POST['iecirknis_head']);
        set_param('cirsmas_kods', $_POST['cirsmas_kods_head']);
        set_param('pavadzime_head', $_POST['pavadzime_head']);
        set_param('transport_firm', $_POST['transport_firm']);
        set_param('auto', $_POST['auto_head']);
        set_param('soferis', $_POST['soferis_head']);
        set_param('vieta', $_POST['vieta_head']);
        set_param('piezimes', $_POST['piezimes_head']);
        set_param('atbildigais', $_POST['atbildigais_head']);
        set_param('parbaudija', $_POST['parbaudija_head']);
        set_param('veidoja', $_POST['veidoja_head']);
        set_param('custom11', $_POST['custom11_head']);
        set_param('custom12', $_POST['custom12_head']);
        set_param('sortiments', $_POST['sortiments_head']);
        set_param('standarts', $_POST['standarts_head']);
        set_param('metode', $_POST['metode_head']);
        set_param('raukums', $_POST['raukums_head']);
        set_param('merinstruments', $_POST['merinstruments_head']);
        set_param('terminsh', $_POST['terminsh_head']);
        $xml_vars['gvalues' . $grup . '1'] = $_POST['gvalues' . $grup . '1'];
        $xml_vars['gvalues' . $grup . '1_1'] = $_POST['gvalues' . $grup . '1_1'];
        $xml_vars['gvalues' . $grup . '1_2'] = $_POST['gvalues' . $grup . '1_2'];
        $xml_vars['gvalues' . $grup . '2'] = $_POST['gvalues' . $grup . '2'];
        $xml_vars['gvalues' . $grup . '2_1'] = $_POST['gvalues' . $grup . '2_1'];
        $xml_vars['gvalues' . $grup . '2_2'] = $_POST['gvalues' . $grup . '2_2'];
        $xml_vars['gvalues' . $grup . '3'] = $_POST['gvalues' . $grup . '3'];
        $xml_vars['gvalues' . $grup . '3_1'] = $_POST['gvalues' . $grup . '3_1'];
        $xml_vars['gvalues' . $grup . '3_2'] = $_POST['gvalues' . $grup . '3_2'];
        $xml_vars['gvalues' . $grup . '4'] = $_POST['gvalues' . $grup . '4'];
        $xml_vars['gvalues' . $grup . '4_1'] = $_POST['gvalues' . $grup . '4_1'];
        $xml_vars['gvalues' . $grup . '4_2'] = $_POST['gvalues' . $grup . '4_2'];
        $xml_vars['virsmeri' . $grup] = $_POST['virsmeri' . $grup];
        $xml_vars['virsmeri' . $grup . '_1'] = $_POST['virsmeri' . $grup . '_1'];
        $xml_vars['virsmeri' . $grup . '_2'] = $_POST['virsmeri' . $grup . '_2'];
        $xml_vars['virsmeri_brakim' . $grup] = $_POST['virsmeri_brakim' . $grup];
        $xml_vars['virsmeri_brakim' . $grup . '_1'] = $_POST['virsmeri_brakim' . $grup . '_1'];
        $xml_vars['virsmeri_brakim' . $grup . '_2'] = $_POST['virsmeri_brakim' . $grup . '_2'];
        $xml_vars['koeficients' . $grup] = $_POST['koeficients' . $grup];
        $xml_vars['koeficients' . $grup . '_1'] = $_POST['koeficients' . $grup . '_1'];
        $xml_vars['koeficients' . $grup . '_2'] = $_POST['koeficients' . $grup . '_2'];
        $xml_vars['raukums' . $grup] = $_POST['raukums' . $grup];
        $xml_vars['raukums' . $grup . '_1'] = $_POST['raukums' . $grup . '_1'];
        $xml_vars['raukums' . $grup . '_2'] = $_POST['raukums' . $grup . '_2'];
        $xml_vars['pavadzime'] = $_POST['pavadzime'];
        /////////////////////////////////////////////////////////////////////////
        if ($grup == 1) {
            //        $output = $output . "	<html>";
            //        $output = $output . "	<head>";
            if ($output_pdf) {
                require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/g-atskaite.php';
                $g_atskaite = new g_atskaite();
                $g_atskaite->open_pdf();
                $g_atskaite->report_header_pdf($_POST, $lang, $translate);
            } else {
                $output = $output . "\t\t\t\t\t\t <title>Atskaite " . $lang . "</title>";
                $output = $output . "\t\t\t\t\t\t <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">";
                $output = $output . "\t\t\t\t\t\t</head>";
                $output = $output . "\t\t\t\t\t\t<center>";
                $output = $output . "\t<STYLE TYPE=\"text/css\">";
                $output = $output . "\t  TD { font-size: 12px; }";
                $output = $output . "\t</STYLE>";
                $output = $output . "\t<table border=0 width=90%><td align=center valign='top'>";
                $output = $output . "\t<table border=0 width=100%><tr>";
                $output = $output . "\t<td width=540><img src=\"images/vmf.gif\"></td>";
                $output = $output . " <td align=center>VMF&nbsp;MI&nbsp;P&nbsp;02.01.02.\n<br />2.variants (12.11.2010.)</td>";
                $output = $output . "\t</tr></table></td>";
                $output = $output . "\t<tr><td align=center valign='top'>";
                $output = $output . "\t<table>";
                $output = $output . "\t<tr>";
//.........这里部分代码省略.........
开发者ID:EdijsMuiznieks,项目名称:Test,代码行数:101,代码来源:report_view_test_2.php


示例6: skin_init


//.........这里部分代码省略.........
                    }
                } elseif ($msg_type == 'PM' && $allow_msgform == 'email') {
                    // only email is allowed but user expect private message form
                    if (!empty($current_User) && $recipient_id == $current_User->ID) {
                        $Messages->add(T_('You cannot send a private message to yourself. However you can send yourself an email if you\'d like.'), 'warning');
                    } else {
                        $Messages->add(sprintf(T_('You cannot send a private message to %s. However you can send them an email if you\'d like.'), $recipient_User->get('login')), 'warning');
                    }
                } elseif ($msg_type != 'email' && $allow_msgform == 'PM') {
                    // private message form should be displayed, change display to create new individual thread with the given recipient user
                    // check if creating new PM is allowed
                    if (check_create_thread_limit(true)) {
                        // thread limit reached
                        header_redirect();
                        // exited here
                    }
                    global $edited_Thread, $edited_Message, $recipients_selected;
                    // Load classes
                    load_class('messaging/model/_thread.class.php', 'Thread');
                    load_class('messaging/model/_message.class.php', 'Message');
                    // Set global variable to auto define the FB autocomplete plugin field
                    $recipients_selected = array(array('id' => $recipient_User->ID, 'title' => $recipient_User->login));
                    init_tokeninput_js('blog');
                    $disp = 'threads';
                    $edited_Thread = new Thread();
                    $edited_Message = new Message();
                    $edited_Message->Thread =& $edited_Thread;
                    $edited_Thread->recipients = $recipient_User->login;
                    param('action', 'string', 'new', true);
                    param('thrdtype', 'string', 'individual', true);
                }
                if ($allow_msgform == 'email') {
                    // set recippient user param
                    set_param('recipient_id', $recipient_User->ID);
                }
            }
            if ($allow_msgform == NULL) {
                // should be Prevented by UI
                if (!empty($recipient_User)) {
                    $Messages->add(sprintf(T_('The user "%s" does not want to be contacted through the message form.'), $recipient_User->get('login')), 'error');
                } elseif (!empty($Comment)) {
                    $Messages->add(T_('This commentator does not want to get contacted through the message form.'), 'error');
                }
                $blogurl = $Blog->gen_blogurl();
                // If it was a front page request or the front page is set to 'msgform' then we must not redirect to the front page because it is forbidden for the current User
                $redirect_to = is_front_page() || $Blog->get_setting('front_disp') == 'msgform' ? url_add_param($blogurl, 'disp=403', '&') : $blogurl;
                header_redirect($redirect_to, 302);
                // exited here
            }
            if ($allow_msgform == 'PM' || $allow_msgform == 'email') {
                // Some message form is available
                // Get the suggested subject for the email:
                if (empty($subject)) {
                    // no subject provided by param:
                    global $DB;
                    if (!empty($comment_id)) {
                        // fp>TODO there should be NO SQL in this file. Make a $ItemCache->get_by_comment_ID().
                        $row = $DB->get_row('
							SELECT post_title
								FROM T_items__item, T_comments
							 WHERE comment_ID = ' . $DB->quote($comment_id) . '
								 AND post_ID = comment_item_ID');
                        if ($row) {
                            $subject = T_('Re:') . ' ' . sprintf(T_('Comment on %s'), $row->post_title);
                        }
                    }
开发者ID:Ariflaw,项目名称:b2evolution,代码行数:67,代码来源:_skin.funcs.php


示例7: print_report

function print_report()
{
    $output = '';
    $DB_CON = new C_DB('localhost', DATABASE, LOGIN, PWD);
    $C_REP = new C_REPORT($_POST, $DB_CON, false);
    /////////////////////////////////////////////////////////////////////////
    $_POST['pavadzime_head'] = $_POST['pavadzime'];
    set_param('akts_nr', $_POST['akts_nr_head']);
    set_param('pircejs_head', $_POST['pircejs_head']);
    set_param('pircejs_regnum', $_POST['pircejs_regnum']);
    set_param('pardevejs_head', $_POST['pardevejs_head']);
    set_param('pardevejs_regnum', $_POST['pardevejs_regnum']);
    set_param('pieg_lig_num', $_POST['pieg_lig_num']);
    set_param('datums', $_POST['datums_head']);
    set_param('iecirknis', $_POST['iecirknis_head']);
    set_param('cirsmas_kods', $_POST['cirsmas_kods_head']);
    set_param('pavadzime_head', $_POST['pavadzime_head']);
    set_param('transport_firm', $_POST['transport_firm']);
    set_param('auto', $_POST['auto_head']);
    set_param('soferis', $_POST['soferis_head']);
    set_param('vieta', $_POST['vieta_head']);
    set_param('piezimes', $_POST['piezimes_head']);
    set_param('atbildigais', $_POST['atbildigais_head']);
    set_param('custom11', $_POST['custom11_head']);
    set_param('custom12', $_POST['custom12_head']);
    set_param('sortiments', $_POST['sortiments_head']);
    set_param('standarts', $_POST['standarts_head']);
    set_param('metode', $_POST['metode_head']);
    set_param('raukums', $_POST['raukums_head']);
    set_param('merinstruments', $_POST['merinstruments_head']);
    set_param('terminsh', $_POST['terminsh_head']);
    $xml_vars['gvalues1'] = $_POST['gvalues1'];
    $xml_vars['gvalues1_1'] = $_POST['gvalues1_1'];
    $xml_vars['gvalues1_2'] = $_POST['gvalues1_2'];
    $xml_vars['gvalues2'] = $_POST['gvalues2'];
    $xml_vars['gvalues2_1'] = $_POST['gvalues2_1'];
    $xml_vars['gvalues2_2'] = $_POST['gvalues2_2'];
    $xml_vars['gvalues3'] = $_POST['gvalues3'];
    $xml_vars['gvalues3_1'] = $_POST['gvalues3_1'];
    $xml_vars['gvalues3_2'] = $_POST['gvalues3_2'];
    $xml_vars['gvalues4'] = $_POST['gvalues4'];
    $xml_vars['gvalues4_1'] = $_POST['gvalues4_1'];
    $xml_vars['gvalues4_2'] = $_POST['gvalues4_2'];
    $xml_vars['virsmeri'] = $_POST['virsmeri'];
    $xml_vars['virsmeri_1'] = $_POST['virsmeri_1'];
    $xml_vars['virsmeri_2'] = $_POST['virsmeri_2'];
    $xml_vars['koeficients'] = $_POST['koeficients'];
    $xml_vars['koeficients_1'] = $_POST['koeficients_1'];
    $xml_vars['koeficients_2'] = $_POST['koeficients_2'];
    $xml_vars['raukums'] = $_POST['raukums'];
    $xml_vars['raukums_1'] = $_POST['raukums_1'];
    $xml_vars['raukums_2'] = $_POST['raukums_2'];
    $xml_vars['pavadzime'] = $_POST['pavadzime'];
    /////////////////////////////////////////////////////////////////////////
    if ($C_REP->ERRORS) {
        $output = $output . "<html>";
        $output = $output . "<head>";
        $output = $output . "<title>Kļūda!</title>";
        $output = $output . "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">";
        $output = $output . "</head>";
        $output = $output . "<center>";
        $output = $output . "<STYLE TYPE=\"text/css\">";
        $output = $output . "  TD { font-size: 12px; }";
        $output = $output . "</STYLE>";
        $output = $output . "</style>";
        $output = $output . "<body>";
        $output = $output . "<p class='pagestart'></p><center><br><br>";
        $output = $output . "<b><font color=red>Kļūda!</font></b>";
        $output = $output . "<br><br>";
        $output = $output . $C_REP->ERRORS;
        $output = $output . "</center>";
        $output = $output . "<br><br>";
        $output = $output . "<input type=button value=\"Atkārtot\" onclick=\"history.back(-1)\">";
        $output = $output . "</body>";
        $output = $output . "</html>";
        return $output;
    }
    $output = $output . "\t<html>";
    $output = $output . "\t<head>";
    $output = $output . "\t\t\t\t\t\t <title>Atskaite</title>";
    $output = $output . "\t\t\t\t\t\t <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">";
    $output = $output . "\t\t\t\t\t\t</head>";
    $output = $output . "\t\t\t\t\t\t<center>";
    $output = $output . "\t<STYLE TYPE=\"text/css\">";
    $output = $output . "\t  TD { font-size: 12px; }";
    $output = $output . "\t</STYLE>";
    $output = $output . "\t<table border=0 width=90%>";
    $output = $output . "\t<tr>";
    $output = $output . "\t<td><img src=\"images/vmf.gif\"></td>";
    $output = $output . "\t</tr>";
    $output = $output . "\t<tr><td align=center>";
    $output = $output . "\t<table>";
    $output = $output . "\t<tr>";
    $output = $output . "\t <td align=center width=50></td>";
    $output = $output . "\t <td align=center valign=center><font size=5>Testēšanas pārskats nr. " . get_param('akts_nr') . "</font></td>";
    $output = $output . "\t</tr>";
    $output = $output . "\t</table>";
    $output = $output . "\t<br>";
    $output = $output . "\t<table cellspacing=0 cellpadding=0>";
    if ($_POST['contract_num']) {
//.........这里部分代码省略.........
开发者ID:EdijsMuiznieks,项目名称:Test,代码行数:101,代码来源:report_view_bruto.php


示例8: print_all_reports

function print_all_reports()
{
    global $lang;
    global $translate;
    global $arrsum;
    global $C_REP;
    $arrfinal = array();
    $output = "";
    for ($grup = 1; $grup <= $_POST['grup']; $grup++) {
        //Valoda
        if (isset($_POST['valoda' . $grup])) {
            $lang = $_POST['valoda' . $grup];
        } else {
            $lang = 'LAT';
        }
        $_POST['pavadzime_head'] = $_POST['pavadzime'];
        set_param('akts_nr', $_POST['akts_nr_head']);
        set_param('pircejs_head', $_POST['pircejs_head']);
        set_param('pircejs_regnum', $_POST['pircejs_regnum']);
        set_param('pardevejs_head', $_POST['pardevejs_head']);
        set_param('pardevejs_regnum', $_POST['pardevejs_regnum']);
        set_param('pieg_lig_num', $_POST['pieg_lig_num']);
        set_param('datums', $_POST['datums_head']);
        set_param('iecirknis', $_POST['iecirknis_head']);
        set_param('cirsmas_kods', $_POST['cirsmas_kods_head']);
        set_param('pavadzime_head', $_POST['pavadzime_head']);
        set_param('transport_firm', $_POST['transport_firm']);
        set_param('auto', $_POST['auto_head']);
        set_param('soferis', $_POST['soferis_head']);
        set_param('vieta', $_POST['vieta_head']);
        set_param('piezimes', $_POST['piezimes_head']);
        set_param('atbildigais', $_POST['atbildigais_head']);
        set_param('custom11', $_POST['custom11_head']);
        set_param('custom12', $_POST['custom12_head']);
        set_param('sortiments', $_POST['sortiments_head']);
        set_param('standarts', $_POST['standarts_head']);
        set_param('metode', $_POST['metode_head']);
        set_param('raukums', $_POST['raukums_head']);
        set_param('merinstruments', $_POST['merinstruments_head']);
        set_param('terminsh', $_POST['terminsh_head']);
        $xml_vars['gvalues' . $grup . '1'] = $_POST['gvalues' . $grup . '1'];
        $xml_vars['gvalues' . $grup . '1_1'] = $_POST['gvalues' . $grup . '1_1'];
        $xml_vars['gvalues' . $grup . '1_2'] = $_POST['gvalues' . $grup . '1_2'];
        $xml_vars['gvalues' . $grup . '2'] = $_POST['gvalues' . $grup . '2'];
        $xml_vars['gvalues' . $grup . '2_1'] = $_POST['gvalues' . $grup . '2_1'];
        $xml_vars['gvalues' . $grup . '2_2'] = $_POST['gvalues' . $grup . '2_2'];
        $xml_vars['gvalues' . $grup . '3'] = $_POST['gvalues' . $grup . '3'];
        $xml_vars['gvalues' . $grup . '3_1'] = $_POST['gvalues' . $grup . '3_1'];
        $xml_vars['gvalues' . $grup . '3_2'] = $_POST['gvalues' . $grup . '3_2'];
        $xml_vars['gvalues' . $grup . '4'] = $_POST['gvalues' . $grup . '4'];
        $xml_vars['gvalues' . $grup . '4_1'] = $_POST['gvalues' . $grup . '4_1'];
        $xml_vars['gvalues' . $grup . '4_2'] = $_POST['gvalues' . $grup . '4_2'];
        $xml_vars['virsmeri' . $grup] = $_POST['virsmeri' . $grup];
        $xml_vars['virsmeri' . $grup . '_1'] = $_POST['virsmeri' . $grup . '_1'];
        $xml_vars['virsmeri' . $grup . '_2'] = $_POST['virsmeri' . $grup . '_2'];
        $xml_vars['koeficients' . $grup] = $_POST['koeficients' . $grup];
        $xml_vars['koeficients' . $grup . '_1'] = $_POST['koeficients' . $grup . '_1'];
        $xml_vars['koeficients' . $grup . '_2'] = $_POST['koeficients' . $grup . '_2'];
        $xml_vars['raukums' . $grup] = $_POST['raukums' . $grup];
        $xml_vars['raukums' . $grup . '_1'] = $_POST['raukums' . $grup . '_1'];
        $xml_vars['raukums' . $grup . '_2'] = $_POST['raukums' . $grup . '_2'];
        $xml_vars['pavadzime'] = $_POST['pavadzime'];
        /////////////////////////////////////////////////////////////////////////
        if ($C_REP->ERRORS) {
            //$output = $output . "<html>";
            //$output = $output . "<head>";
            $output = $output . "<title>Kļūda!</title>";
            $output = $output . "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">";
            $output = $output . "</head>";
            $output = $output . "<center>";
            $output = $output . "<STYLE TYPE=\"text/css\">";
            $output = $output . "  TD { font-size: 12px; }";
            $output = $output . "</STYLE>";
            $output = $output . "</style>";
            $output = $output . "<body>";
            $output = $output . "<p class='pagestart'></p><center><br><br>";
            $output = $output . "<b><font color=red>Kļūda!</font></b>";
            $output = $output . "<br><br>";
            $output = $output . $C_REP->ERRORS;
            $output = $output . "</center>";
            $output = $output . "<br><br>";
            $output = $output . "<input type=button value=\"Atkārtot\" onclick=\"history.back(-1)\">";
            //$output = $output . "</body>";
            //$output = $output . "</html>";
            return $output;
        }
        if ($grup == 1) {
            //$output = $output . "	<html>";
            //$output = $output . "	<head>";
            $output = $output . "\t\t\t\t\t\t <title>Atskaite " . $lang . "</title>";
            $output = $output . "\t\t\t\t\t\t <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">";
            $output = $output . "\t\t\t\t\t\t</head>";
            $output = $output . "\t\t\t\t\t\t<center>";
            $output = $output . "\t<STYLE TYPE=\"text/css\">";
            $output = $output . "\t  TD { font-size: 12px; }";
            $output = $output . "\t</STYLE>";
            $output = $output . "\t<table border=0 width=90%>";
            $output = $output . "\t<tr>";
            $output = $output . "\t<td><img src=\"images/vmf.gif\"></td>";
            $output = $output . "\t</tr>";
//.........这里部分代码省略.........
开发者ID:EdijsMuiznieks,项目名称:Test,代码行数:101,代码来源:report_view.php


示例9: Form

$Form = new Form(NULL, 'blogperm_checkchanges', 'post', 'fieldset');
$Form->begin_form('fform');
$Form->add_crumb('collection');
$Form->hidden_ctrl();
$Form->hidden('tab', 'perm');
$Form->hidden('blog', $edited_Blog->ID);
$Form->begin_fieldset(T_('User permissions') . get_manual_link('user_permissions'));
/*
 * Query user list:
 */
if (get_param('action') == 'filter2') {
    $keywords = param('keywords2', 'string', '', true);
    set_param('keywords1', $keywords);
} else {
    $keywords = param('keywords1', 'string', '', true);
    set_param('keywords2', $keywords);
}
$SQL = new SQL();
$SQL->SELECT('user_ID, user_login, user_level, bloguser_perm_poststatuses + 0 as perm_poststatuses, bloguser_perm_edit, bloguser_ismember,' . 'bloguser_perm_delcmts, bloguser_perm_recycle_owncmts, bloguser_perm_vote_spam_cmts, bloguser_perm_cmtstatuses + 0 as perm_cmtstatuses, bloguser_perm_edit_cmt,' . 'bloguser_perm_delpost, bloguser_perm_edit_ts, bloguser_perm_cats,' . 'bloguser_perm_properties, bloguser_perm_admin, bloguser_perm_media_upload,' . 'bloguser_perm_media_browse, bloguser_perm_media_change, bloguser_perm_page,' . 'bloguser_perm_intro, bloguser_perm_podcast, bloguser_perm_sidebar');
$SQL->FROM('T_users LEFT JOIN T_coll_user_perms ON (
				 						user_ID = bloguser_user_ID
										AND bloguser_blog_ID = ' . $edited_Blog->ID . ' )');
$SQL->ORDER_BY('bloguser_ismember DESC, *, user_login, user_ID');
if (!empty($keywords)) {
    $SQL->add_search_field('user_login');
    $SQL->add_search_field('user_firstname');
    $SQL->add_search_field('user_lastname');
    $SQL->add_search_field('user_nickname');
    $SQL->add_search_field('user_email');
    $SQL->WHERE_keywords($keywords, 'AND');
}
开发者ID:ldanielz,项目名称:uesp.blog,代码行数:31,代码来源:_coll_user_perm.form.php


示例10: die

 *
 * @package evoskins
 * @subpackage bootstrap_manual
 */
if (!defined('EVO_MAIN_INIT')) {
    die('Please, do not access this page directly.');
}
if (version_compare($app_version, '6.4') < 0) {
    // Older skins (versions 2.x and above) should work on newer b2evo versions, but newer skins may not work on older b2evo versions.
    die('This skin is designed for b2evolution 6.4 and above. Please <a href="http://b2evolution.net/downloads/index.html">upgrade your b2evolution</a>.');
}
if (!empty($requested_404_title)) {
    // Initialize a prefilled search form
    set_param('s', str_replace('-', ' ', $requested_404_title));
    set_param('sentence', 'OR');
    set_param('title', '');
    // Empty this param to exclude a filter by post_urltitle
}
// This is the main template; it may be used to display very different things.
// Do inits depending on current $disp:
skin_init(!empty($requested_404_title) ? 'search' : $disp);
// -------------------------- HTML HEADER INCLUDED HERE --------------------------
skin_include('_html_header.inc.php', array());
// -------------------------------- END OF HEADER --------------------------------
// ---------------------------- SITE HEADER INCLUDED HERE ----------------------------
// If site headers are enabled, they will be included here:
siteskin_include('_site_body_header.inc.php');
// ------------------------------- END OF SITE HEADER --------------------------------
?>

<div class="container">
开发者ID:Ariflaw,项目名称:b2evolution,代码行数:31,代码来源:404_not_found.main.php


示例11: set_order

 /**
  * Set an order of a list (Use this function after when all $this->cols are already defined)
  *
  * @param string Field name
  * @param string Order direction (A|D)
  * @param boolean Save the filters from Session
  */
 function set_order($order_field, $direction = 'D', $save_filters = false)
 {
     global $Session;
     if (empty($this->cols)) {
         // The columns are not defined yet, Exit here
         return;
     }
     // Force filter param to reset the previous filters
     set_param('filter', 'new');
     $this->refresh_query = true;
     foreach ($this->cols as $col_num => $col) {
         // Find a column number
         if ($col['order'] == $order_field) {
             break;
         }
     }
     if ($save_filters) {
         // Get the filters from Session
         $this->filters = $Session->get($this->filterset_name);
         if (!is_array($this->filters)) {
             $this->filters = array();
         }
         $this->filters = array_merge($this->default_filters, $this->filters);
     } else {
         // Reset the filters
         $this->filters = array();
     }
     // Rewrite a previous order to new value
     $this->filters['order'] = str_repeat('-', $col_num) . $direction;
     $this->order = $this->filters['order'];
     // Save a new order
     $Session->set($this->filterset_name, $this->filters);
     $this->save_filterset();
 }
开发者ID:Ariflaw,项目名称:b2evolution,代码行数:41,代码来源:_userlist.class.php


示例12: set_from_Request

 /**
  * Set a parameter from a Request form value.
  *
  * @param string Dataobject parameter name
  * @param string Request parameter name (NULL means to use Dataobject param name with its prefix)
  * @param boolean true to set to NULL if empty string value
  * @return boolean true, if value has been set/changed, false if not.
  */
 function set_from_Request($parname, $var = NULL, $make_null = false, $cleanup_function = NULL)
 {
     if (empty($var)) {
         $var = $this->dbprefix . $parname;
     }
     $value = get_param($var);
     if (!empty($cleanup_function)) {
         //We want to apply a cleanup function
         $value = $cleanup_function($value);
         set_param($var, $value);
     }
     return $this->set($parname, $value, $make_null);
 }
开发者ID:ldanielz,项目名称:uesp.blog,代码行数:21,代码来源:_dataobject.class.php


示例13: die

 *
 * @package admin
 */
if (!defined('EVO_MAIN_INIT')) {
    die('Please, do not access this page directly.');
}
global $kind, $admin_url, $action, $AdminUI;
$kind_title = get_collection_kinds($kind);
echo action_icon(T_('Abort creating new collection'), 'close', $admin_url . '?ctrl=dashboard', ' ' . sprintf(T_('Abort new "%s" collection'), $kind_title), 3, 3, array('class' => 'action_icon floatright'));
echo '<h2 class="page-title">' . sprintf(T_('New %s'), $kind_title) . ':</h2>';
if ($action == 'new-selskin') {
    // Select an existing skin
    echo '<h3>' . sprintf(T_('Pick an existing skin below: (or <a %s>install a new one now</a>)'), 'href="' . $admin_url . '?ctrl=collections&amp;action=new-installskin&amp;kind=' . $kind . '&amp;skin_type=normal"') . '</h3>';
    $SkinCache =& get_SkinCache();
    $SkinCache->load_all();
    // TODO: this is like touching private parts :>
    foreach ($SkinCache->cache as $Skin) {
        if ($Skin->type != 'normal') {
            // This skin cannot be used here...
            continue;
        }
        $disp_params = array('function' => 'pick', 'select_url' => '?ctrl=collections&amp;action=new-name&amp;kind=' . $kind . '&amp;skin_ID=' . $Skin->ID);
        // Display skinshot:
        Skin::disp_skinshot($Skin->folder, $Skin->name, $disp_params);
    }
    echo '<div class="clear"></div>';
} elseif ($action == 'new-installskin') {
    // Display a form to install new skin
    set_param('redirect_to', $admin_url . '?ctrl=collections&action=new-selskin&kind=' . $kind);
    $AdminUI->disp_view('skins/views/_skin_list_available.view.php');
}
开发者ID:Ariflaw,项目名称:b2evolution,代码行数:31,代码来源:_coll_sel_skin.view.php


示例14: get_threads_results

/**
 * Get threads SQL
 *
 * @param array Params
 * @return Results object
 */
function get_threads_results($params = array())
{
    global $perm_abuse_management, $current_User, $DB;
    // Make sure we are not missing any param:
    $params = array_merge(array('results_param_prefix' => 'thrd_', 'user_ID' => $current_User->ID, 'sent_user_ID' => '', 'search_word' => '', 'search_user' => '', 'show_closed_threads' => NULL, 'only_sql' => false), $params);
    $filter_sql = '';
    if (!empty($params['search_word']) || !empty($params['search_user']) || !empty($params['sent_user_ID'])) {
        // We want to filter on search keyword:
        $filter_sql = array();
        if (!empty($params['search_word'])) {
            // Search by title
            $filter_sql[] = 'thrd_title LIKE "%' . $DB->escape($params['search_word']) . '%"';
        }
        if (!empty($params['search_user'])) {
            // Search by user names
            // Get all threads IDs with searching user name
            $threads_SQL = new SQL();
            $threads_SQL->SELECT('tsta_thread_ID');
            $threads_SQL->FROM('T_users');
            $threads_SQL->FROM_add('INNER JOIN T_messaging__threadstatus ON tsta_user_ID = user_ID');
            $threads_SQL->WHERE('user_login LIKE "%' . $DB->escape($params['search_user']) . '%"');
            $threads_SQL->WHERE_or('user_firstname LIKE "%' . $DB->escape($params['search_user']) . '%"');
            $threads_SQL->WHERE_or('user_lastname LIKE "%' . $DB->escape($params['search_user']) . '%"');
            $threads_SQL->WHERE_or('user_nickname LIKE "%' . $DB->escape($params['search_user']) . '%"');
            $threads_IDs = $DB->get_col($threads_SQL->get());
            if (empty($threads_IDs)) {
                // No found related threads
                $threads_IDs[] = '-1';
            }
            $filter_sql[] = 'tsta_thread_ID IN ( ' . implode(',', $threads_IDs) . ' )';
        }
        if (!empty($params['sent_user_ID'])) {
            // Get all threads IDs with searching user name
            $threads_SQL = new SQL();
            $threads_SQL->SELECT('DISTINCT( msg_thread_ID )');
            $threads_SQL->FROM('T_messaging__message');
            $threads_SQL->WHERE('msg_author_user_ID = ' . $DB->quote($params['sent_user_ID']));
            $threads_IDs = $DB->get_col($threads_SQL->get());
            if (empty($threads_IDs)) {
                // No found related threads
                $threads_IDs[] = '-1';
            }
            $filter_sql[] = 'tsta_thread_ID IN ( ' . implode(',', $threads_IDs) . ' )';
        }
        $filter_sql = count($filter_sql) > 0 ? implode(' OR ', $filter_sql) : '';
    }
    $thrd_msg_ID = $perm_abuse_management ? '"abuse"' : 'tsta_first_unread_msg_ID';
    // Create SELECT SQL query
    $select_SQL = new SQL();
    $select_SQL->SELECT('thrd_ID, thrd_title, thrd_datemodified, ' . $thrd_msg_ID . ' AS thrd_msg_ID, tsta_thread_leave_msg_ID, msg_datetime AS thrd_unread_since');
    $select_SQL->FROM('T_messaging__threadstatus');
    $select_SQL->FROM_add('INNER JOIN T_messaging__thread ON tsta_thread_ID = thrd_ID');
    $select_SQL->FROM_add('LEFT OUTER JOIN T_messaging__message ON tsta_first_unread_msg_ID = msg_ID');
    if (!$perm_abuse_management) {
        // Limit threads by current user
        $select_SQL->WHERE('tsta_user_ID = ' . $params['user_ID']);
        if ($params['show_closed_threads'] === NULL) {
            // Explicit param value was not set, use the default
            // Show closed messages by default only if there are unread messages in closed conversations
            $params['show_closed_threads'] = $DB->get_var('SELECT COUNT( tsta_thread_ID )
					FROM T_messaging__threadstatus
					WHERE tsta_thread_leave_msg_ID IS NOT NULL AND tsta_first_unread_msg_ID IS NOT NULL
					AND tsta_first_unread_msg_ID <= tsta_thread_leave_msg_ID AND tsta_user_ID = ' . $params['user_ID']);
            // Set 'show_closed' param value, so the checkobx filter can be displayed correctly
            set_param('show_closed', $params['show_closed_threads'] ? true : false);
        }
        if (!$params['show_closed_threads']) {
            // Don't show the closed conversations
            $select_SQL->WHERE_and('( tsta_thread_leave_msg_ID IS NULL )');
        }
    }
    if (!empty($filter_sql)) {
        // Filter
        $select_SQL->WHERE_and($filter_sql);
    }
    $select_SQL->ORDER_BY('tsta_first_unread_msg_ID DESC, thrd_datemodified DESC');
    if ($perm_abuse_management) {
        $select_SQL->GROUP_BY('tsta_thread_ID');
    }
    // Create COUNT SQL query
    $count_SQL = new SQL();
    $count_SQL->SELECT('COUNT( DISTINCT tsta_thread_ID )');
    $count_SQL->FROM('T_messaging__threadstatus');
    if (!empty($filter_sql)) {
        // Filter
        $count_SQL->FROM_add('INNER JOIN T_messaging__thread ON tsta_thread_ID = thrd_ID');
    }
    if (!$perm_abuse_management) {
        // Limit threads by current user
        $count_SQL->WHERE('tsta_user_ID = ' . $params['user_ID']);
        if (!$params['show_closed_threads']) {
            // Don't show the closed conversations
            $count_SQL->WHERE_and('( tsta_thread_leave_msg_ID IS NULL )');
        }
//.........这里部分代码省略.........
开发者ID:Ariflaw,项目名称:b2evolution,代码行数:101,代码来源:_messaging.funcs.php


示例15: print_all_reports

function print_all_reports($atskaites_kods, $tmp_returnResult)
{
    global $lang;
    global $translate;
    global $arrsum;
    global $C_REP;
    global $pavadzimes_tabula;
    global $output_pdf;
    global $subMakeAll;
    global $output_xml;
    global $prefix_subname;
    global $output_xml_dir;
    $arrfinal = array();
    $output = "";
    $tmp_translation['pavadzime'] = "<b>Pavadzīme</b>";
    $tmp_translation['fsc'] = "Sertifikācija";
    $tmp_translation['transp_darba_uzd'] = "Transp. darba uzd.";
    $tmp_translation['pircejs_regnum'] = "Pircējs Reg. Num.";
    $tmp_translation['pardevejs_regnum'] = "Pārdevējs Reg. Num.";
    $tmp_translation['transport_firm'] = "Transp. firma";
    $tmp_translation['kad_piegad'] = "<b>Pavadzīmes datums</b>";
    $tmp_translation['kad_uzmer'] = "Uzm. datums";
    $tmp_translation['auto_head'] = "Automašīnas nr.";
    $tmp_translation['soferis_head'] = "Šoferis";
    $tmp_translation['iecirknis_head'] = "Iecirknis";
    $tmp_translation['pircejs_head'] = "Pircējs";
    $tmp_translation['pardevejs_head'] = "Pārdevējs";
    $tmp_translation['standarts_head'] = "Standarts";
    $tmp_translation['metode_head'] = "Metode";
    $tmp_translation['cirsma_head'] = "Cirsma";
    $tmp_translation['iecirknis_head'] = "Iecirknis";
    $tmp_translation['vieta_head'] = "Uzmērīšanas vieta";
    $tmp_translation['custom12_head'] = $_POST['custom11_head'];
    $tmp_translation['piezimes_head'] = "Piezīmes";
    $tmp_translation['sortiments_head'] = "Sortiments";
    $tmp_translation['raukums_head'] = "Raukums";
    $tmp_translation['merinstruments_head'] = "Mērinstruments";
    $tmp_translation['terminsh_head'] = "Pārbaudes termiņš";
    $lang = 'LAT';
    if (trim($_POST['pavadzime']) != '') {
        $_POST['pavadzime_head'] = $_POST['pavadzime'];
    }
    set_param('akts_nr', $_POST['akts_nr_head']);
    set_param('fsc', $_POST['fsc']);
    set_param('pircejs_head', $_POST['pircejs_head']);
    set_param('pircejs_regnum', $_POST['pircejs_regnum']);
    set_param('pardevejs_head', $_POST['pardevejs_head']);
    set_param('pardevejs_regnum', $_POST['pardevejs_regnum']);
    set_param('pieg_lig_num', $_POST['pieg_lig_num']);
    set_param('datums', $_POST['datums_head']);
    set_param('iecirknis', $_POST['iecirknis_head']);
    set_param('cirsmas_kods', $_POST['cirsmas_kods_head']);
    set_param('pavadzime_head', $_POST['pavadzime_head']);
    set_param('transport_firm', $_POST['transport_firm']);
    set_param('auto', $_POST['auto_head']);
    set_param('soferis', $_POST['soferis_head']);
    set_param('vieta', $_POST['vieta_head']);
    set_param('piezimes', $_POST['piezimes_head']);
    set_param('atbildigais', $_POST['atbildigais_head']);
    set_param('parbaudija', $_POST['parbaudija_head']);
    set_param('veidoja', $_POST['veidoja_head']);
    set_param('custom11', $_POST['custom11_head']);
    set_param('custom12', $_POST['custom12_head']);
    set_param('sortiments', $_POST['sortiments_head']);
    set_param('standarts', $_POST['standarts_head']);
    set_param('metode', $_POST['metode_head']);
    set_param('raukums', $_POST['raukums_head']);
    set_param('merinstruments', $_POST['merinstruments_head']);
    set_param('terminsh', $_POST['terminsh_head']);
    if ($output_pdf) {
        require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/g-atskaite.php';
        $g_atskaite = new g_atskaite();
        $g_atskaite->open_pdf();
        $g_atskaite->report_header_pdf($_POST, $lang, $translate);
    } else {
        $newOutput = $newOutput . "\t\t\t\t\t\t <title>Atskait 

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP set_pconfig函数代码示例发布时间:2022-05-15
下一篇:
PHP set_page_title函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap