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


PHP Dialog类代码示例

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


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

示例1: toHtml

 /**
  * Retrieves the HTML string.
  *
  * @return string
  */
 public function toHtml()
 {
     $dialog = new Dialog();
     $dialog->bottom = new Bar();
     $dialog->center = $this->content;
     $dialog->bottom->right = $this->cancel->toHtml() . $this->confirm->toHtml();
     $this->content = $dialog->toHtml();
     return parent::toHtml();
 }
开发者ID:neatphp,项目名称:neat,代码行数:14,代码来源:Prompt.php

示例2: onTestCreate

 function onTestCreate($packet)
 {
     $server = $packet->content;
     $view = $this->tpl();
     $view->assign('server', $server);
     Dialog::fill($view->draw('_groups_add', true));
 }
开发者ID:vijo,项目名称:movim,代码行数:7,代码来源:Groups.php

示例3: LoginDialog

        function LoginDialog($message='') {
            parent::Dialog('login', guil('dialog_login_title'), '', 1, 1);

            $html  = "<p>".guil('dialog_login_useforumacc')."</p>
                <form action='' method='POST'>
                    <table>
                        <tr><td>".guil('username').":</td><td><input type='text' name='username'></td></tr>
                        <tr><td>".guil('password').":</td><td><input type='password' name='password'></td></tr>
                        <tr><td>".guil('preferedlanguage').":</td><td>
                            <select name='language' onChange='document.location.href=\"?op=setlanguage&language=\"+this.value'>";
            foreach(array('de' => 'Deutsch', 'en' => 'English') as $short => $long) {
                if($_SESSION['language'] == $short) {
                    $selected = "selected='selected'";
                } else {
                    $selected = "";
                }
                $html .= "<option value='".$short."' ".$selected.">".$long."</option>";
            }
            $html .= "</select>
                            </td></tr>
                            <tr><td colspan='2' align='center'><input type='submit' value='".guil('login')."'></td></tr>
                        </table>";
            if($login_message) {
                $html .= "<p style='color:red; text-align:center'>".$message."</p>";
            }
            $html .= "<input type='hidden' name='op' value='login'>
                    </form>
                    <p><a href='/forum/ucp.php?mode=register'>".guil('register')."</a> <a href='?op=demo'>".guil('startdemo')."</a></p>";

            $this->nobutton = 1;
            $this->content = $html;
        }
开发者ID:nesges,项目名称:Batalyser,代码行数:32,代码来源:class.logindialog.php

示例4: BtnDeleteRecord

 public static function BtnDeleteRecord()
 {
     if (Controller::ExecuteNonQuery($query_name_delete, $params)) {
         Dialog::RequestRecordDeleted();
     } else {
         Dialog::RequestError();
     }
 }
开发者ID:arivera12,项目名称:lazy,代码行数:8,代码来源:class.php

示例5: HelpDialog

 function HelpDialog() {
     parent::Dialog('help', guil('dialog_help_title'), '', 1, 0);
     
     $html = "<img src='http://geekandpoke.typepad.com/.a/6a00d8341d3df553ef014e8b8f1c5b970d-800wi' alt=''>";
     
     $this->content = $html;
     $this->nobutton = 1;
 }
开发者ID:nesges,项目名称:Batalyser,代码行数:8,代码来源:class.helpdialog.php

示例6: ajaxList

 /**
  * @brief Display the room list
  */
 function ajaxList($room)
 {
     if (!$this->validateRoom($room)) {
         return;
     }
     $view = $this->tpl();
     $cd = new \Modl\ContactDAO();
     $view->assign('list', $cd->getPresences($room));
     Dialog::fill($view->draw('_rooms_list', true), true);
 }
开发者ID:Trim,项目名称:movim,代码行数:13,代码来源:Rooms.php

示例7: compileDialog

 protected function compileDialog()
 {
     $dialog = $this->getDialog();
     foreach ($dialog as $sectionId => $section) {
         if (!is_array($section)) {
             $sect = preg_split("/[_\\.:]/", $section);
             switch ($sect[0]) {
                 case self::MIXIN:
                     $newDialog = new Dialog($sect[1]);
                     $mixin = $newDialog->getDialog();
                     $dialog = array_merge($dialog, $mixin);
                     break;
                 case self::PLUGIN:
                     break;
             }
         }
     }
     return $dialog;
 }
开发者ID:mbabenko21,项目名称:likedimion-game,代码行数:19,代码来源:Dialog.php

示例8: FetchByKey

 protected function FetchByKey($bo_no)
 {
     $retult = $this->Sql('fetch_key', $bo_no);
     if (!$this->board[$retult['bo_id']]) {
         $this->board[$retult['bo_id']] = $retult;
     }
     if (!$this->board[$retult['bo_id']]) {
         Dialog::Alert('게시판 번호가 잘못 됐습니다.');
     }
     return $this->board[$retult['bo_id']];
 }
开发者ID:nclco,项目名称:magicboard3,代码行数:11,代码来源:Board.class.php

示例9: onCommand

 function onCommand($package)
 {
     $command = $package->content;
     $view = $this->tpl();
     if (isset($command->note)) {
         $view->assign('note', $command->note);
         Dialog::fill($view->draw('_adhoc_note', true));
     }
     if (isset($command->x)) {
         $xml = new \XMPPtoForm();
         $form = $xml->getHTML($command->x->asXML());
         $view->assign('form', $form);
         $view->assign('attributes', $command->attributes());
         $view->assign('actions', null);
         if (isset($command->actions)) {
             $view->assign('actions', $command->actions);
         }
         Dialog::fill($view->draw('_adhoc_form', true), true);
     }
     RPC::call('AdHoc.initForm');
 }
开发者ID:ajira86,项目名称:movim,代码行数:21,代码来源:AdHoc.php

示例10: MessageDialog

        function MessageDialog($message, $title, $returnto='') {
            parent::Dialog('message', $title, '', 1, 1);
            
            if(!$returnto) {
                $returnto = $this->jsclose();
                $backbuttontext = guil('close');
            } elseif($returnto=='back') {
                $returnto = 'document.location.href="?op=noop"';
                $backbuttontext = guil('back');
            } else {
                $backbuttontext = guil('back');
            }

            $html = "<p>$message</p><center><button onClick=\"".$returnto."\">".$backbuttontext."</button></center>";
            
            $this->content = $html;
            $this->important = 1;
            $this->nobutton = 1;
            unset($this->width);
            unset($this->position);
        }
开发者ID:nesges,项目名称:Batalyser,代码行数:21,代码来源:class.messagedialog.php

示例11: CharmanagerDialog

 function CharmanagerDialog() {
     parent::Dialog('charmanager', guil('yourchars'), '', 1);
 }
开发者ID:nesges,项目名称:Batalyser,代码行数:3,代码来源:class.charmanagerdialog.php

示例12: header

<?php

if (!defined("__MAGIC__")) {
    exit;
}
$key = GV::Number($this->KN());
$file = $this->Sql('fetch', $key);
$path = Path::Group($file['file_path']);
// 무단 링크 검사
// 무단링크시에는 hotlink.gif이미지를 뿌려준다.
$check_hotlink = GV::String(File::hotlink);
if (!$check_hotlink || $_SESSION[File::hotlink] != $check_hotlink) {
    $path = Path::img('hotlink.gif');
}
if (file_exists($path)) {
    header("content-type: {$file['file_type']}");
    header("content-length: " . filesize($path));
    header("pragma: no-cache");
    header("expires: 0");
    flush();
    $fp = fopen($path, "rb");
    while (!feof($fp)) {
        echo fread($fp, 100 * 1024);
        flush();
    }
    fclose($fp);
    flush();
} else {
    Dialog::Alert("파일을 찾을 수 없습니다.");
}
exit;
开发者ID:nclco,项目名称:magicboard3,代码行数:31,代码来源:init.image.php

示例13:

if (!$clear['mb_email']) {
    Dialog::alert("이메일 주소를 입력하세요.");
}
if ($clear['mb_passwd'] != $_POST['confirm_passwd']) {
    Dialog::alert("비밀번호 확인이 일치하지 않습니다.");
}
$clear['mb_passwd'] = $this->Sql('password', $clear['mb_passwd']);
$clear['mb_datetime'] = 'NOW()';
$clear['mb_level'] = '2';
$tbn = $this->TBN();
$sql = "\n  SELECT\n    mb_id,\n    mb_nick,\n    mb_name,\n    mb_email\n    FROM {$tbn}\n  WHERE\n    mb_id='{$clear['mb_id']}' OR\n    mb_nick='{$clear['mb_nick']}' OR\n    mb_name='{$clear['mb_name']}' OR\n    mb_email='{$clear['mb_email']}'\n  LIMIT 1\n";
$dup = DB::Get()->sql_fetch($sql);
if ($duplication !== false) {
    if ($dup['mb_id'] == $clear['mb_id']) {
        Dialog::alertNReplace("동일한 회원아이디가 있습니다.", Path::Group());
    }
    if ($dup['mb_nick'] == $clear['mb_nick']) {
        Dialog::alertNReplace("동일한 회원닉네임이 있습니다.", Path::Group());
    }
    if ($dup['mb_name'] == $clear['mb_name']) {
        Dialog::alertNReplace("동일한 회원이름이 있습니다.", Path::Group());
    }
    if ($dup['mb_email'] == $clear['mb_email']) {
        Dialog::alertNReplace("동일한 이메일 주소가 있습니다.", Path::Group());
    }
} else {
    // 회원정보 입력
    $this->Sql('insert', $clear);
    Dialog::alertNReplace("회원가입을 환영합니다.\n가입하신 아이디와 비밀번호로 로그인하세요.", Path::Group());
}
exit;
开发者ID:nclco,项目名称:magicboard3,代码行数:31,代码来源:init.insert.php

示例14:

<?php

if (!defined("__MAGIC__")) {
    exit;
}
$mb_id = GV::Id('mb_id', 'POST');
if (Config::Inst('config.php')->admin == $mb_id) {
    Dialog::Alert("최고관리자는 질문 답변으로 비밀번호를 찾을수 없습니다.");
}
$ret = $this->Sql('fetch_by_id', $mb_id);
if (!$ret['mb_question']) {
    Dialog::alert("비밀번호 찾기 질문을 등록하지 않았습니다.\n질문 답변으로 비밀번호를 찾을수 없습니다.\n관리자에게 문의하세요.", Path::Group());
}
开发者ID:nclco,项目名称:magicboard3,代码行数:13,代码来源:init.find_pw_question.php

示例15: unset

if (!defined("__MAGIC__")) {
    exit;
}
// 게시판 생성
if ($_POST['bo_no'] == '') {
    $data['bo_subject'] = GV::String('bo_subject');
    $_POST['bo_no'] = Board::Inst()->Action('insert_record', $data);
    unset($_POST['bo_subject']);
}
if (!$_POST['list_view']) {
    $_POST['list_view'] = 0;
}
if (!$_POST['show_notice']) {
    $_POST['show_notice'] = 0;
}
if (!$_POST['use_comment']) {
    $_POST['use_comment'] = 0;
}
$data = Widget::Inst()->Action('data_implode', $_POST);
$key = DB::Get()->InsertEx($this->TBN(), $data);
if (!$key) {
    Dialog::Alert('정확한 정보를 입력하세요.');
}
Widget::Inst()->Action('add_widget', $key);
?>
<script>
window.opener.location.reload();
window.close();
</script>
<?php 
exit;
开发者ID:nclco,项目名称:magicboard3,代码行数:31,代码来源:init.insert.php


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