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


PHP Language::Word方法代码示例

本文整理汇总了PHP中Language::Word方法的典型用法代码示例。如果您正苦于以下问题:PHP Language::Word方法的具体用法?PHP Language::Word怎么用?PHP Language::Word使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Language的用法示例。


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

示例1: WrapLinkToButton

 public static function WrapLinkToButton($link, $text = NULL)
 {
     if ($text === NULL) {
         $text = Language::Word('get download link');
     }
     $link = 'http://' . $_SERVER["HTTP_HOST"] . $link;
     return '<button class="btn btn-info" onclick="get_temporary_link(\'' . urlencode($link) . '\');">' . $text . '</button>';
 }
开发者ID:Gerold103,项目名称:lgmis,代码行数:8,代码来源:secretlink.php

示例2: ToString

 public static function ToString($err)
 {
     if (is_a($err, 'Error')) {
         return Error::ToString($err->id) . ': ' . $err->mesg;
     }
     switch ($err) {
         case self::no_translation:
             return Language::Word('no translation');
         case self::db_error:
             return Language::Word('internal database error');
         case self::arg_not_valid:
             return Language::Word('argument not valid');
         case self::ambiguously:
             return Language::Word('ambigiously');
         case self::not_found:
             return Language::Word('not found');
         case self::error:
             return Language::Word('error');
     }
 }
开发者ID:Gerold103,项目名称:lgmis,代码行数:20,代码来源:error.php

示例3: PairLabelAndInputFileArea

function PairLabelAndInputFileArea($labes_width, $file_width, $label)
{
    $res = '';
    $res .= '<div class="row">';
    $res .= '<div class="' . ColAllTypes($labes_width) . ' vcenter" align="right">';
    $res .= '<b>' . $label . '</b>';
    $res .= '</div>';
    $res .= '<div class="' . ColAllTypes($file_width) . ' vcenter" align="center" style="padding: 0px;">';
    $res .= '<div id="files_area" class="files_area">';
    $res .= '<input type="file" onchange="send_files(this.files);" id="one_file_upload" style="display: none;">';
    $res .= '<button onclick="elem(\'one_file_upload\').click(); return false;" type="button" class="btn btn-default" style="padding: 0px; position: absolute; top: 0px; left: 0px; width: 100%;">' . Language::Word('add file') . '</button>';
    $res .= '<ul id="progress_bars" style="list-style-type: none;">';
    $res .= '</ul>';
    $res .= '</div>';
    $res .= '</div>';
    $res .= '<input id="files_count" type="hidden" name="files_count" value="0">';
    $res .= '</div>';
    return $res;
}
开发者ID:Gerold103,项目名称:lgmis,代码行数:19,代码来源:element_templates.php

示例4: ColAllTypes

$is_public = true;
include_once 'utility_lgmis_lib.php';
include_once $link_to_utility_authorization;
$header = Language::PublicMenu('contacts');
$content = '';
$footer = '';
$header_type = 'h4';
$title = Language::PublicMenu('contacts');
$content .= '<br><div class="row" align="center">';
$content .= '<div class="' . ColAllTypes(6) . ' vcenter">';
$content .= '<iframe class="google-map" src="https://www.google.com/maps/embed?pb=!1m24!1m8!1m3!1d8994.513616455022!2d37.532702!3d55.695448!3m2!1i1024!2i768!4f13.1!4m13!3e2!4m5!1s0x46b54cf533082589%3A0x402540c5efcc4157!2z0KHRgtCw0L3RhtC40Y8g0LzQtdGC0YDQviDCq9Cj0L3QuNCy0LXRgNGB0LjRgtC10YLCuywg0KDQvtGB0YHQuNGP!3m2!1d55.692679999999996!2d37.536882!4m5!1s0x46b54c6129ed4359%3A0xe03aa689c99f60f5!2z0KTQsNC60YPQu9GM0YLQtdGCINCS0JzQmiDQnNCT0KMsINGD0LvQuNGG0LAg0JvQtdCx0LXQtNC10LLQsCwg0KHRgtCw0YDQstC40LvRjCwg0JzQvtGB0LrQvtCy0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwsINCg0L7RgdGB0LjRjw!3m2!1d55.698434999999996!2d37.530196!5e0!3m2!1sru!2sru!4v1432075564575"></iframe>';
$content .= '</div>';
$content .= '<div class="' . ColAllTypes(6) . ' vcenter">' . Language::Address() . '</div>';
$content .= '</div>';
$content .= '<br>';
$users = User::FetchAllEmployes();
$size = count($users);
if ($size > 0) {
    $content .= '<hr><div class="row" align="center">' . ToPageHeader(Language::Word('employees'), 'h4', 'grey') . '</div><hr>';
    require $link_to_pagination_init_template;
    for ($i = $from; $i <= $to; ++$i) {
        $content .= $users[$i]->ToHTMLAutoShortForTable(GetUserPrivileges());
        if ($i != $to) {
            $content .= '<hr>';
        }
    }
    require $link_to_pagination_show_template;
    $content .= $pagination;
}
$no_content_center = true;
include $link_to_public_template;
开发者ID:Gerold103,项目名称:lgmis,代码行数:31,代码来源:public_contacts.php

示例5: ColAllTypes

        </div>
        <?php 
echo '<div id="footer" align="center">';
echo '<div class="row">';
echo '<div class="' . ColAllTypes(12) . '" align="center">';
require_once $link_to_public_footer_template;
echo '</div>';
echo '</div>';
echo '</div>';
?>
    </div>
    <div style="position: absolute; top: 20px; right: 50px;">
        <a onclick="changeLanguage('rus');"><img class="lang_flag" src=<?php 
echo '"' . Link::Get($link_to_service_images) . 'rus_flag.png"';
?>
 ></a><a onclick="changeLanguage('eng');"><img class="lang_flag" src=<?php 
echo '"' . Link::Get($link_to_service_images) . 'eng_flag.png"';
?>
 ></a>
    </div>
    <div style="position: fixed; top: 20px; left: 50px;">
        <a class="btn btn" href=<?php 
echo '"' . Link::Get($link_to_admin) . '"';
?>
 ><?php 
echo Language::Word('private office');
?>
</a>
    </div>
    </body>
</html>
开发者ID:Gerold103,项目名称:lgmis,代码行数:31,代码来源:public_template.php

示例6: ColAllTypes

 $content .= '<div class="row" align="center">';
 $content .= '<div class="' . ColAllTypes(4) . '"><img src="' . Link::Get($user->GetPathToPhoto()) . '" class="img-avatar"></div>';
 $content .= '<div class="' . ColAllTypes(8) . '">';
 $content .= '<br><div class="row" align="center">';
 $content .= '<div class="' . ColAllTypes(6) . '" align="right"><font color="grey">' . Language::Word('position') . ':</font></div>';
 $content .= '<div class="' . ColAllTypes(6) . '" align="left">' . $user->GetPosition() . '</div>';
 $content .= '</div>';
 $articles = Article::FetchCountOf(['where' => 'author_id = ' . $user->GetID()]);
 $content .= '<div class="row" align="center">';
 $content .= '<div class="' . ColAllTypes(6) . '" align="right"><font color="grey">' . Language::Word('news published') . ':</font></div>';
 $content .= '<div class="' . ColAllTypes(6) . '" align="left">' . $articles . '</div>';
 $content .= '</div>';
 $content .= '<hr>';
 $content .= ToPageHeader(Language::PublicMenu('contacts'), 'h4', 'grey');
 $content .= '<div class="row" align="center">';
 $content .= '<div class="' . ColAllTypes(6) . '" align="right"><font color="grey">' . Language::Word('mail') . ':</font></div>';
 $content .= '<div class="' . ColAllTypes(6) . '" align="left"><a href="mailto:' . $user->GetEmail() . '">' . $user->GetEmail() . '</a></div>';
 $content .= '</div>';
 $content .= '</div>';
 $content .= '</div>';
 $content .= '<hr>';
 $blocks = UserBlock::FetchAllByAuthorID($user->GetID());
 $size = count($blocks);
 if ($size) {
     require $link_to_pagination_init_template;
     for ($i = $from; $i <= $to; ++$i) {
         $content .= $blocks[$i]->ToHTMLAutoFull(GetUserPrivileges()) . '<hr>';
     }
     require $link_to_pagination_show_template;
     $content .= $pagination;
 }
开发者ID:Gerold103,项目名称:lgmis,代码行数:31,代码来源:public_user.php

示例7: htmlspecialchars

                $content .= '<textarea id="text_block" name="text_block"></textarea>';
                $content .= '</div>';
                $content .= '</div>';
                $content .= '<script>';
                $content .= 'CKEDITOR.replace("text_block",';
                $content .= '{ filebrowserImageUploadUrl: "' . $link_to_img_upload . '?type=' . Project::$type . '&id=' . $id . '&add=add&glob_id=' . $project->id . '",';
                $content .= 'filebrowserImageBrowseUrl : "' . $link_to_img_browse . '?type=' . Project::$type . '&id=' . $project->id . '&edit=edit",';
                $content .= 'contentsCss: [CKEDITOR.basePath + "contents.css", "css/styles.css", "css/bootstrap.min.css"],';
                $content .= 'allowedContent: true, });';
                $content .= 'CKEDITOR.config.height = 400;';
                $content .= '</script>';
                $content .= '<div class="row">';
                $content .= '<input type="submit" class="btn btn-primary btn-lg" name="add" value="' . Language::Word('save') . '">';
                $content .= '</div>';
                $content .= '</form>';
                $title = Language::Word('language adding');
                $header = $title;
            }
        } else {
            if (!isset($_REQUEST['id'])) {
                echo 'user id is unset';
                exit;
            }
            $project = Project::FetchByID($_REQUEST['id']);
            $title = Language::Word('project');
            $header = htmlspecialchars($project->name);
            $content = $project->ToHTMLAutoFull(GetUserPrivileges());
        }
    }
}
include_once $link_to_admin_template;
开发者ID:Gerold103,项目名称:lgmis,代码行数:31,代码来源:admin_project.php

示例8: ToPageHeader

                if ($content_type != 'all_reps') {
                    $ids = '';
                    for ($i = 0, $cnt = count($target); $i < $cnt; ++$i) {
                        $ids .= '(id = ' . $target[$i] . ')';
                        if ($i < $cnt - 1) {
                            $ids .= ' OR';
                        }
                    }
                    $reports = Report::FetchBy(['where_addition' => $ids, 'limit' => $limit, 'offset' => $from, 'order_by' => 'id DESC']);
                } else {
                    $reports = Report::FetchBy(['limit' => $limit, 'offset' => $from, 'order_by' => 'id DESC']);
                }
                for ($i = 0; $i < $limit; ++$i) {
                    $content .= $reports[$i]->ToHTMLAutoShortForTable(GetUserPrivileges());
                }
                $content .= '</tbody>';
                $content .= '</table>';
                $content .= '</div>';
                $content .= '</div>';
                require $link_to_pagination_show_template;
                $content .= $pagination;
            } else {
                $content .= ToPageHeader(Language::Word('absense'), "h3", "black");
            }
        default:
            break;
    }
} else {
    $content = MenuButton(Language::Word('reports'), $link_to_admin_bookkeeping . '?content_type=' . $content_types_short['reports'], 'btn-default', '', 'get');
}
include_once $link_to_admin_template;
开发者ID:Gerold103,项目名称:lgmis,代码行数:31,代码来源:admin_bookkeeping.php

示例9: ToPageHeader

    $content .= '<tr>';
    $content .= '<th class="text-center">' . Language::Word('full name') . '</th>';
    $content .= '<th class="text-center">' . Language::Word('date') . '</th>';
    $content .= '<th class="text-center">' . Language::Word('comment') . '</th>';
    $content .= '<th class="text-center">' . Language::Word('mail') . '</th>';
    $content .= '<th class="text-center">' . Language::Word('telephone') . '</th>';
    $content .= '<th class="text-center">' . Language::Word('actions') . '</th>';
    $content .= '</tr>';
    $content .= '</thead>';
    $content .= '<tbody>';
    $from = -1;
    $to = -1;
    require $link_to_pagination_init_template;
    for ($i = $from; $i <= $to; ++$i) {
        $request = $reg_requests[$i];
        if ($request == NULL) {
            echo 'error on ' . $i . '<br>';
        } else {
            $content .= $request->ToHTMLAutoShortForTable(GetUserPrivileges());
        }
    }
    $content .= '</tbody>';
    $content .= '</table>';
    $content .= '</div>';
    $pagination = '';
    require $link_to_pagination_show_template;
    $content .= $pagination;
} else {
    $content = ToPageHeader(Language::Word('absense'), "h3", "black");
}
include $link_to_admin_template;
开发者ID:Gerold103,项目名称:lgmis,代码行数:31,代码来源:admin_requests_on_register.php

示例10: GetLinkToFile

 public function GetLinkToFile()
 {
     global $link_to_utility_download;
     global $link_to_logo;
     $text = Language::Word('download file');
     if ($this->is_directory) {
         $text = Language::Word('download zip');
     }
     $res = '<a class="btn btn-warning" href="' . $this->GetURLToFile() . '">' . $text . '</a>';
     return $res;
 }
开发者ID:Gerold103,项目名称:lgmis,代码行数:11,代码来源:myfile.php

示例11: AlertMessage

include_once $link_to_utility_authorization;
if (isset($_POST['id']) && isset($_GET['id']) && $_POST['id'] !== $_GET['id']) {
    $content = AlertMessage('alert-danger', 'Неоднозначные id');
} else {
    $project = Project::FetchByID($_REQUEST['id']);
    $header = '';
    $content = '';
    $footer = '';
    $header_type = 'h4';
    if ($project === NULL) {
        $title = Language::Word('error');
        $header = $title;
        $content = Language::Word('internal server error');
    } else {
        if ($project === Error::no_translation) {
            $title = Language::Word('error');
            $header = Language::Word('sorry');
            $content = Language::Word('no translation for this project');
        } else {
            $title = $project->name;
            $header = htmlspecialchars($project->name);
            $content .= '<br><div class="row" align="center">';
            $content .= Language::Word('direction of project') . ': ' . Direction::FetchByID($project->direction_id)->LinkToThis();
            $content .= '</div>';
            $content .= '<br><hr>';
            $content .= '<div class="row"><div class="' . ColAllTypes(12) . '">' . $project->text_block . '</div></div>';
            $no_content_center = true;
        }
    }
}
include $link_to_public_template;
开发者ID:Gerold103,项目名称:lgmis,代码行数:31,代码来源:public_project.php

示例12: unsetError

?>
);
                } else {
                    unsetError(password_field);
                }

            	return error_flag != true;
            }
        </script>
    </head>

    <body>
    	<?php 
echo '<div class="row">';
echo '<div class="' . ColAllTypes(12) . '" align="center">';
echo ToPageHeader(Language::Word('registration'));
echo '</div>';
echo '</div>';
echo '<div class="row">';
if ($no_content_center) {
    echo '<div class="' . ColAllTypes(12) . '">';
} else {
    echo '<div class="' . ColAllTypes(12) . '" align="center">';
}
echo RequestOnRegister::FormForCreating();
echo '</div>';
echo '</div>';
echo '<div class="row">';
echo '<div class="' . ColAllTypes(12) . '" align="center">';
echo $footer;
echo '</div>';
开发者ID:Gerold103,项目名称:lgmis,代码行数:31,代码来源:admin_registration.php

示例13: GetUserID

$is_public = false;
include_once 'utility_lgmis_lib.php';
include_once $link_to_utility_authorization;
$header = '';
$content = '';
$footer = '';
$on_start_page = true;
$header .= Language::Word('main admin page');
$user = User::FetchBy(['select_list' => 'position', 'eq_conds' => ['id' => GetUserID()], 'is_unique' => true]);
if (GetUserPrivileges() == admin_user_id) {
    //Manage staff
    $content .= MenuButton(Language::Word('staff management'), $link_to_admin_manage_staff, 'btn-default', '', 'get');
    //Manage content
    $content .= MenuButton(Language::Word('content management'), $link_to_admin_manage_content, 'btn-default', '', 'get');
    //Requests on register
    $content .= MenuButton(Language::Word('requests on register'), $link_to_admin_requests_on_register, 'btn-default', '', 'get');
} else {
    //Manage staff
    $content .= MenuButton(Language::Word('our collective'), $link_to_admin_manage_staff, 'btn-default', '', 'get');
    //Manage content
    $content .= MenuButton(Language::Word('our content'), $link_to_admin_manage_content, 'btn-default', '', 'get');
}
$content .= MenuButton(Language::Word('file manager'), $link_to_admin_file_manager, 'btn-default', '', 'get');
if ($user->GetPositionNum() != NotEmployeeNum) {
    $content .= MenuButton(Language::Word('bookkeeping'), $link_to_admin_bookkeeping, 'btn-default', '', 'get');
}
include $link_to_admin_template;
if ($need_to_show_timer) {
    echo 'secs: ' . (microtime(true) - $start_timer__);
}
开发者ID:Gerold103,项目名称:lgmis,代码行数:30,代码来源:admin.php

示例14: ToHTMLEditing

 public function ToHTMLEditing()
 {
     global $user_blocks_in_db;
     global $link_to_admin_user_block;
     global $positions;
     global $link_to_utility_sql_worker;
     $positions = Language::GetPositions();
     $res = '';
     $res .= '<form method="post" action="' . $link_to_utility_sql_worker . '" enctype="multipart/form-data">';
     $res .= '<div class="row">';
     $res .= '<div class="' . ColAllTypes(1) . '"></div>';
     $res .= '<div class="' . ColAllTypes(5) . ' vcenter" align="right">';
     $res .= '<div class="row">';
     $res .= '<img src="' . $this->path_to_photo . '" class="img-rounded img-avatar">';
     $res .= '</div>';
     $res .= '<div class="row">';
     $res .= PairLabelAndInputFile(3, 5, Language::Word('upload image'), 'img');
     $res .= '</div>';
     $res .= '</div>';
     $res .= '<div class="' . ColAllTypes(5) . ' vcenter" align="left">';
     $res .= PairLabelAndInput(2, 10, Language::Word('name'), 'name', Language::Word('insert name'), $this->name);
     $res .= PairLabelAndInput(2, 10, Language::Word('surname'), 'surname', Language::Word('insert surname'), $this->surname);
     $res .= PairLabelAndInput(2, 10, Language::Word('fathername'), 'fathername', Language::Word('insert fathername'), $this->fathername);
     if ($this->login != 'admin' && GetUserLogin() == 'admin') {
         $tmp = User::FetchAllByPosition(DirectorPositionNum);
         if (($tmp != NULL || GetUserLogin() != 'admin') && $this->position != DirectorPositionNum) {
             unset($positions[DirectorPositionNum]);
         }
         $res .= PairLabelAndSelect(2, 10, Language::Word('position'), 'position', $positions, $selected_field = array($this->position, $positions[$this->position]));
     } else {
         $res .= PairLabelAndPanel(2, 10, Language::Word('position'), htmlspecialchars(Language::Position($this->position)));
     }
     $res .= PairLabelAndInput(2, 10, Language::Word('mail'), 'email', Language::Word('insert mail'), $this->email);
     $res .= PairLabelAndInput(2, 10, Language::Word('telephone'), 'telephone', Language::Word('insert telephone'), $this->telephone);
     if ($this->login == GetUserLogin() && $this->login != 'admin') {
         $res .= PairLabelAndInput(2, 10, Language::Word('login'), 'login', Language::Word('insert login'), $this->login);
     } else {
         $res .= PairLabelAndPanel(2, 10, Language::Word('login'), $this->login);
     }
     $res .= PairLabelAndInput(2, 10, Language::Word('birthday'), 'birth_day', 'dd', date('j', $this->birthday));
     $res .= PairLabelAndInput(2, 10, Language::Word('birthmonth'), 'birth_month', 'mm', date('n', $this->birthday));
     $res .= PairLabelAndInput(2, 10, Language::Word('birthyear'), 'birth_year', 'yyyy', date('Y', $this->birthday));
     if ($this->login == GetUserLogin()) {
         $res .= PairLabelAndPassword(4, 8, Language::Word('old password'), 'password_old', Language::Word('only for password changing'));
         $res .= PairLabelAndPassword(4, 8, Language::Word('new password'), 'password_new1', Language::Word('only for password changing'));
         $res .= PairLabelAndPassword(4, 8, Language::Word('repeat new password'), 'password_new2', Language::Word('only for password changing'));
     }
     $res .= '</div>';
     $res .= '</div>';
     $res .= DialogInputsYesNo('edit', $_POST['type'], $_POST['id'], Language::Word('save'), Language::Word('cancel'));
     $res .= '</form>';
     return $res;
 }
开发者ID:Gerold103,项目名称:lgmis,代码行数:53,代码来源:user.php

示例15: AlertMessage

<?php

require_once 'utility_lgmis_lib.php';
require_once $link_to_utility_authorization;
if (isset($_POST['id']) && isset($_GET['id']) && $_POST['id'] !== $_GET['id']) {
    $content = AlertMessage('alert-danger', 'Неоднозначные id');
} else {
    $user = User::FetchBy(['eq_conds' => ['id' => $_REQUEST['id']], 'is_unique' => true]);
    if (Error::IsError($user)) {
        echo Error::ToString($user);
        exit;
    }
    $prev_page = '';
    if (isset($_REQUEST['edit'])) {
        $title = Language::Word('profile edit');
        $header = $title;
        $content = $user->ToHTMLEditing();
    } else {
        $title = $user->GetName();
        $header = htmlspecialchars(Language::Translit($user->GetName() . ' ' . $user->GetSurname() . ' ' . $user->GetFathername()));
        $content = $user->ToHTMLAutoFull(GetUserPrivileges());
        $no_content_center = true;
    }
}
require_once $link_to_admin_template;
开发者ID:Gerold103,项目名称:lgmis,代码行数:25,代码来源:admin_user.php


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