當前位置: 首頁>>代碼示例>>PHP>>正文


PHP op_include_form函數代碼示例

本文整理匯總了PHP中op_include_form函數的典型用法代碼示例。如果您正苦於以下問題:PHP op_include_form函數的具體用法?PHP op_include_form怎麽用?PHP op_include_form使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了op_include_form函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: array

        }
        $option = array('border' => true);
        op_include_list('communityList', $list, $option);
        op_include_pager_navigation($pager, 'community/search?page=%d', array('is_total' => false, 'use_current_query_string' => true));
    } else {
        echo __('Your search queries did not match any communities.');
    }
}
?>

<?php 
$options = array('url' => url_for('community/search'), 'button' => __('Search'), 'method' => 'get', 'align' => 'center');
if (!$isResult) {
    $options['moreInfo'] = array(link_to(__('Create a new %community%'), '@community_edit'));
}
op_include_form('searchCommunity', $filters, $options);
?>

<?php 
if ($isResult) {
    ?>

<?php 
} else {
    $list = array();
    foreach ($categorys as $category) {
        $list[] = link_to(sprintf('%s', $category->getName()), 'community/search', array('query_string' => 'community[community_category_id]=' . $category->getId()));
    }
    $option = array('border' => true, 'title' => __('Categories'));
    op_include_list('searchCategory', $list, $option);
}
開發者ID:kawahara,項目名稱:OpenPNE3,代碼行數:31,代碼來源:searchSuccess.php

示例2: use_helper

<?php

use_helper('Date');
$options = array('title' => __('Search Community Wikis'), 'url' => url_for('communityWiki/search'), 'button' => __('Search'), 'method' => 'get');
if (!$communityId) {
    unset($form['target']);
    unset($form['id']);
}
op_include_form('searchCommunityWiki', $form, $options);
?>

<?php 
if ($pager->getNbResults()) {
    ?>

<?php 
    $list = array();
    foreach ($pager->getResults() as $key => $topic) {
        $list[$key] = array();
        $list[$key][__('Name', array(), 'community_wiki_form')] = $topic->getName();
        $list[$key][__('%community% Name')] = $topic->getCommunity()->getName();
        $list[$key][__('Body', array(), 'community_wiki_form')] = $topic->getBody();
        $list[$key][__('Date Updated', array(), 'form_community')] = format_datetime($topic->getUpdatedAt(), 'f');
    }
    $options = array('title' => __('Search Results'), 'pager' => $pager, 'link_to_page' => 'communityWiki/search?page=%d', 'list' => $list, 'link_to_detail' => $link_to_detail);
    op_include_parts('searchResultList', 'searchResultCommunityWiki', $options);
} else {
    if ('topic' === $type) {
        $message = __('Your search queries did not match any community topics.');
    } else {
        if ('wiki' === $type) {
開發者ID:hiroyaxxx,項目名稱:opCommunityWikiPlugin,代碼行數:31,代碼來源:searchSuccess.php

示例3: op_include_form

<?php

op_include_form('registerConnectionForm', $form, array('isMultipart' => true, 'url' => url_for('connection_update', $consumer), 'title' => __('アプリケーション編集'), 'button' => __('Edit')));
開發者ID:te-koyama,項目名稱:openpne,代碼行數:3,代碼來源:editSuccess.php

示例4: include_customizes

?>
</div>
</div>

<?php 
/* ** added for opNicePlugin ** */
include_customizes("topicDetailBox", "bottom");
?>

<?php 
include_component('communityTopicComment', 'list', array('communityTopic' => $communityTopic));
?>

<?php 
if ($communityTopic->isCreatableCommunityTopicComment($sf_user->getMemberId())) {
    $options = array();
    $options['title'] = __('Post a new topic comment');
    $options['url'] = url_for('communityTopic_comment_create', $communityTopic);
    $options['isMultipart'] = true;
    op_include_form('formCommunityTopicComment', $form, $options);
}
?>

<?php 
op_include_line('linkLine', link_to('[' . $community->getName() . '] ' . __('Community Top Page'), 'community/home?id=' . $community->getId()));
?>




開發者ID:te-koyama,項目名稱:openpne,代碼行數:26,代碼來源:showSuccess.php

示例5: include_component

<?php 
include_component('communityTopicComment', 'list', array('communityTopic' => $communityTopic));
?>

<?php 
echo op_within_page_link('');
if ($acl->isAllowed($sf_user->getMemberId(), null, 'addComment')) {
    ?>
<hr color="<?php 
    echo $op_color['core_color_11'];
    ?>
">
<?php 
    $options['url'] = url_for('communityTopic_comment_create', $communityTopic);
    $options['button'] = __('Post');
    $options['isMultipart'] = true;
    op_include_form('formTopicComment', $form, $options);
}
?>
<hr color="<?php 
echo $op_color['core_color_11'];
?>
">

<?php 
echo link_to(__('Topic List'), '@communityTopic_list_community?id=' . $community->getId());
?>
<br>
<?php 
echo link_to(__('Community Top'), 'community/home?id=' . $community->getId());
開發者ID:kiwpon,項目名稱:opCommunityTopicPlugin,代碼行數:30,代碼來源:showSuccess.php

示例6: op_include_form

<?php

echo op_include_form('passowrdResetForm', $form, array('title' => __('Password Recovery'), 'body' => __('Please input your new password.')));
開發者ID:te-koyama,項目名稱:openpne,代碼行數:3,代碼來源:passwordRecoveryCompleteSuccess.php

示例7: op_mobile_page_title

<?php

op_mobile_page_title(__('Edit profile'));
?>

<?php 
op_include_form('profileForm', array($memberForm, $profileForm), array('url' => url_for('@member_editProfile'), 'align' => 'center', 'button' => __('Save')));
開發者ID:te-koyama,項目名稱:openpne,代碼行數:7,代碼來源:editProfileSuccess.php

示例8: op_mobile_page_title

<?php

op_mobile_page_title(__('Settings'), __('Delete Photo'));
echo __('Do you delete this photo?');
?>
<hr color="<?php 
echo $op_color["core_color_12"];
?>
">
<center>
<?php 
echo image_tag_sf_image($image->getFile(), array('size' => '120x120', 'format' => 'jpg'));
?>
<br>
<?php 
echo sprintf('[%s]', link_to(__('Expansion'), sf_image_path($image->getFile(), array('size' => '320x320', 'format' => 'jpg'))));
?>
<br>
</center>
<hr color="<?php 
echo $op_color["core_color_12"];
?>
">
<?php 
op_include_form('deleteForm', $form, array('url' => url_for('member/deleteImage?member_image_id=' . $image->getId()), 'button' => __('Delete'), 'align' => 'center'));
開發者ID:Kazuhiro-Murota,項目名稱:OpenPNE3,代碼行數:25,代碼來源:deleteImageSuccess.php

示例9: array

<?php

$form->getWidget('title')->setAttribute('size', 40);
$form->getWidget('body')->setAttribute('rows', 15);
$form->getWidget('body')->setAttribute('cols', 50);
$options = array('button' => __('Save'), 'isMultipart' => true);
if ($form->isNew()) {
    $options['title'] = __('Post a bbs');
    $options['url'] = url_for('bbs_create');
} else {
    $options['title'] = __('Edit the bbs');
    $options['url'] = url_for('bbs_update', $diary);
}
op_include_form('bbsForm', $form, $options);
開發者ID:uzura8,項目名稱:opSimpleBbsPlugin,代碼行數:14,代碼來源:_form.php

示例10: op_include_form

<?php

echo op_include_form('passwordRecovery', $form, array('title' => __('Password Recovery')));
開發者ID:te-koyama,項目名稱:openpne,代碼行數:3,代碼來源:passwordRecoverySuccess.php

示例11: op_include_form

<?php

op_include_form('deleteConfirmForm', $form, array('button' => __('Delete'), 'title' => __('Do you really delete this thread?'), 'url' => url_for('bbs_delete', $bbs)));
?>

<?php 
use_helper('Javascript');
?>
 
<?php 
op_include_line('backLink', link_to_function(__('Back to previous page'), 'history.back()'));
開發者ID:uzura8,項目名稱:opSimpleBbsPlugin,代碼行數:11,代碼來源:deleteConfirmSuccess.php

示例12: op_include_form

<?php

op_include_form('deleteConfirmForm', $form, array('button' => __('Delete'), 'title' => __('Do you really delete this application?'), 'url' => url_for('connection_delete', $consumer)));
?>

<?php 
use_helper('Javascript');
?>
 
<?php 
op_include_line('backLink', link_to_function(__('Back to previous page'), 'history.back()'));
開發者ID:te-koyama,項目名稱:openpne,代碼行數:11,代碼來源:deleteConfirmSuccess.php

示例13: __

<?php

$mode = $form->isNew() ? __('Add') : __('Edit');
op_include_form('mangaForm', $form, array('title' => '4コマ漫畫の' . $mode, 'button' => $mode));
?>

<?php 
if (!$form->isNew()) {
    ?>

<?php 
    op_include_parts('buttonBox', 'deleteForm', array('body' => __('この4コマ漫畫をします。協力して描かれた作品である場合、あらかじめ削除する旨を協力者に伝えてください。'), 'title' => __('4コマ漫畫を削除する'), 'button' => __('Delete'), 'method' => 'get', 'url' => url_for('ccccManga/delete?id=' . $form->getObject()->getId())));
    ?>

<?php 
}
開發者ID:nothan,項目名稱:opCCCCPlugin,代碼行數:16,代碼來源:editSuccess.php

示例14: op_include_box

<?php

op_include_box('mtviewer_import_box', 'So-net SNS からダウンロードした書き込みデータを取り込みます', array('title' => 'インポート'));
?>

<?php 
op_include_form('import_form_box', $form, array('isMultipart' => true));
?>

<?php 
slot('queue');
?>
<div class="partsInfo">
<p>現在のインポート待ち件數: <strong><?php 
echo count($queue);
?>
</strong> 件</p>
</div>
<ol>
<?php 
foreach ($queue as $job) {
    ?>
<li>
<?php 
    echo $job->File->original_filename;
    ?>
 
(アップロード: <?php 
    echo op_format_date($job->File->created_at, 'f');
    ?>
)
開發者ID:upsilon,項目名稱:opMTViewerPlugin,代碼行數:31,代碼來源:indexSuccess.php

示例15: array

<?php

$options = array('title' => __('Invite a friend to %1%', array('%1%' => $op_config['sns_name'])), 'url' => url_for('member/invite'), 'button' => __('Send'));
op_include_form('inviteForm', $form, $options);
?>

<?php 
if (count($invites)) {
    ?>
<div class="dparts recentList" id="invitelistForm">
<div class="parts">

<div class="partsHeading">
<h3><?php 
    echo __('Mail address list during invitation');
    ?>
</h3>
</div>

<form method="post" action="<?php 
    echo url_for('member/invite');
    ?>
">

<?php 
    $i = 0;
    foreach ($listform as $field) {
        if ($field->isHidden()) {
            continue;
        }
        ?>
開發者ID:Kazuhiro-Murota,項目名稱:OpenPNE3,代碼行數:31,代碼來源:inviteInput.php


注:本文中的op_include_form函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。