当前位置: 首页>>代码示例>>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;未经允许,请勿转载。