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


PHP ossn_view_form函数代码示例

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


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

示例1: ossn_display_system_messages

echo ossn_display_system_messages();
?>
</div>
<?php 
if (!ossn_isLoggedin()) {
    ?>
    <div class="ossn-header">
        <div class="inner">
            <a href="<?php 
    echo ossn_site_url();
    ?>
">
                <div class="ossn-logo"></div>
            </a>
            <?php 
    echo ossn_view_form('login', array('id' => 'ossn-header-login', 'action' => ossn_site_url('action/user/login'), 'method' => 'post'));
    ?>

        </div>
    </div>
<?php 
} else {
    ?>
    <div class="ossn-topbar">
        <div class="inner">
            <a href="<?php 
    echo ossn_site_url();
    ?>
">
			<div class="logo-second"></div>
			</a>
开发者ID:aidovoga,项目名称:opensource-socialnetwork,代码行数:31,代码来源:page.php

示例2: ossn_view_form

<?php

/**
 * Página dialog que crea i insereix la nova foto
 *
 * @author    Dani Martí <dmarti@abalit.org>
 * @copyright 2016 ABALIT TECHNOLOGIES
 * @license   GPL
 * @link      http://www.abalit.org/
 */
// $album = input('album');
$album = 130;
echo ossn_view_form('trip/addPhoto', array('action' => ossn_site_url() . 'action/trip/addPhoto?album=' . $album, 'method' => 'POST', 'component' => 'OptionTrips'), false);
开发者ID:tricotrin,项目名称:OptionTrips,代码行数:13,代码来源:addPhoto.php

示例3: OssnWall

<?php

/**
 *    OpenSource-SocialNetwork
 *
 * @package   (Informatikon.com).ossn
 * @author    OSSN Core Team <info@opensource-socialnetwork.com>
 * @copyright 2014 iNFORMATIKON TECHNOLOGIES
 * @license   General Public Licence http://opensource-socialnetwork.com/licence
 * @link      http://www.opensource-socialnetwork.com/licence
 */
$posts = new OssnWall();
$posts = $posts->GetUserPosts($params['user']->guid);
if (ossn_user_is_friend(ossn_loggedin_user()->guid, $params['user']->guid) || ossn_loggedin_user()->guid == $params['user']->guid) {
    echo '<div class="ossn-wall-container">';
    echo ossn_view_form('user/container', array('action' => ossn_site_url() . 'action/wall/post/u', 'component' => 'OssnWall', 'params' => array('user' => $params['user'])), false);
    echo '</div>';
}
echo '<div class="user-activity">';
$Pagination = new OssnPagination();
$Pagination->setItem($posts);
$posts = $Pagination->getItem();
if ($posts) {
    foreach ($posts as $post) {
        $data = json_decode(html_entity_decode($post->description));
        $text = $data->post;
        $location = '';
        if (isset($data->location)) {
            $location = '- ' . $data->location;
        }
        if (!isset($data->friend)) {
开发者ID:alibasli,项目名称:Social-Network-PHP-Joomla,代码行数:31,代码来源:wall.php

示例4: ossn_view_form

<?php

/**
 * Open Source Social Network
 *
 * @package   (Informatikon.com).ossn
 * @author    OSSN Core Team <info@opensource-socialnetwork.org>
 * @copyright 2014 iNFORMATIKON TECHNOLOGIES
 * @license   General Public Licence http://www.opensource-socialnetwork.org/licence
 * @link      http://www.opensource-socialnetwork.org/licence
 */
if ($params['ismember'] === 1) {
    echo '<div class="ossn-wall-container">';
    echo ossn_view_form('group/container', array('action' => ossn_site_url() . 'action/wall/post/g', 'component' => 'OssnWall', 'id' => 'ossn-wall-form', 'params' => array('group' => $params['group'])), false);
    echo '</div>';
}
echo '<div class="user-activity">';
$posts = new OssnWall();
$posts = $posts->GetPostByOwner($params['group']['group']->guid, 'group');
$Pagination = new OssnPagination();
$Pagination->setItem($posts);
$posts = false;
if ($params['ismember'] === 1 || $params['membership'] == OSSN_PUBLIC) {
    $posts = $Pagination->getItem();
}
if ($posts) {
    foreach ($posts as $post) {
        $data = json_decode(html_entity_decode($post->description));
        $text = ossn_restore_new_lines($data->post, true);
        $location = '';
        if (isset($data->location)) {
开发者ID:nongdanit-nongdanit,项目名称:ossn,代码行数:31,代码来源:group.php

示例5: ossn_site_url

echo ossn_site_url("administrator/component/OssnSitePages?settings=privacy");
?>
"
       class="btn btn-primary">
        <?php 
echo ossn_print('site:privacy');
?>
</a>
</div>
<?php 
$settings = input('settings');
if (empty($settings)) {
    $settings = 'terms';
}
switch ($settings) {
    case 'terms':
        $params = array('action' => ossn_site_url() . 'action/sitepage/edit/terms', 'component' => 'OssnSitePages');
        echo ossn_view_form('terms', $params, false);
        break;
    case 'about':
        $params = array('action' => ossn_site_url() . 'action/sitepage/edit/about', 'component' => 'OssnSitePages');
        echo ossn_view_form('about', $params, false);
        break;
    default:
    case 'privacy':
        $params = array('action' => ossn_site_url() . 'action/sitepage/edit/privacy', 'component' => 'OssnSitePages');
        echo ossn_view_form('privacy', $params, false);
        break;
    default:
        break;
}
开发者ID:nongdanit-nongdanit,项目名称:ossn,代码行数:31,代码来源:settings.php

示例6: ossn_view_form

<?php

/**
 * Open Source Social Network
 *
 * @package   (Informatikon.com).ossn
 * @author    OSSN Core Team <info@opensource-socialnetwork.org>
 * @copyright 2014 iNFORMATIKON TECHNOLOGIES
 * @license   General Public Licence http://www.opensource-socialnetwork.org/licence
 * @link      http://www.opensource-socialnetwork.org/licence
 */
echo ossn_view_form('admin/cache_settings', array('action' => ossn_site_url('action/admin/cache/create'), 'class' => 'ossn-admin-form'));
开发者ID:ntmtri23,项目名称:lienminh365,代码行数:12,代码来源:cache.php

示例7: ossn_view_form

<?php

echo ossn_view_form('admin/user/edit', array('action' => ossn_site_url('action/admin/edit/user'), 'class' => 'ossn-admin-form', 'params' => $params));
开发者ID:aidovoga,项目名称:opensource-socialnetwork,代码行数:3,代码来源:edit.php

示例8: ossn_view_form

<?php

/**
 * Open Source Social Network
 *
 * @package   Open Source Social Network
 * @author    Open Social Website Core Team <info@informatikon.com>
 * @copyright 2014 iNFORMATIKON TECHNOLOGIES
 * @license   General Public Licence http://www.opensource-socialnetwork.org/licence
 * @link      http://www.opensource-socialnetwork.org/licence
 */
echo ossn_view_form('edit', array('action' => ossn_site_url() . 'action/ossnads/edit', 'component' => 'OssnAds', 'class' => 'ossn-admin-form', 'params' => $params), false);
开发者ID:aidovoga,项目名称:opensource-socialnetwork,代码行数:12,代码来源:edit.php

示例9: input

<?php

/**
 *    OpenSource-SocialNetwork
 *
 * @package   (Informatikon.com).ossn
 * @author    OSSN Core Team <info@opensource-socialnetwork.com>
 * @copyright 2014 iNFORMATIKON TECHNOLOGIES
 * @license   General Public Licence http://opensource-socialnetwork.com/licence
 * @link      http://www.opensource-socialnetwork.com/licence
 */
$album = input('album');
echo ossn_view_form('photos/add', array('action' => ossn_site_url() . 'action/ossn/photos/add?album=' . $album, 'method' => 'POST', 'component' => 'OssnPhotos'), false);
开发者ID:aidovoga,项目名称:opensource-socialnetwork,代码行数:13,代码来源:add.php

示例10: ossn_view_form

<?php

/**
 * Open Source Social Network
 *
 * @package   Open Source Social Network
 * @author    Open Social Website Core Team <info@informatikon.com>
 * @copyright 2014 iNFORMATIKON TECHNOLOGIES
 * @license   General Public Licence http://www.opensource-socialnetwork.org/licence
 * @link      http://www.opensource-socialnetwork.org/licence
 */
echo ossn_view_form('administrator/settings', array('action' => ossn_site_url() . 'action/wall/admin/settings', 'component' => 'OssnWall', 'class' => 'ossn-admin-form'), false);
开发者ID:aidovoga,项目名称:opensource-socialnetwork,代码行数:12,代码来源:settings.php

示例11: ossn_view_form

<?php

/**
 * Open Source Social Network
 *
 * @package   (Informatikon.com).ossn
 * @author    OSSN Core Team <info@opensource-socialnetwork.org>
 * @copyright 2014 iNFORMATIKON TECHNOLOGIES
 * @license   General Public Licence http://www.opensource-socialnetwork.org/licence
 * @link      http://www.opensource-socialnetwork.org/licence
 */
echo ossn_view_form('admin/users/list_search', array('action' => ossn_site_url('administrator/users'), 'class' => 'ossn-admin-form'));
echo ossn_view_form('admin/users/list', array('action' => ossn_site_url('action/admin/users/delete'), 'class' => 'ossn-admin-form'));
开发者ID:nongdanit-nongdanit,项目名称:ossn,代码行数:13,代码来源:list.php

示例12: ossn_print

<?php

/**
 *    OpenSource-SocialNetwork
 *
 * @package   (Informatikon.com).ossn
 * @author    OSSN Core Team <info@opensource-socialnetwork.com>
 * @copyright 2014 iNFORMATIKON TECHNOLOGIES
 * @license   General Public Licence http://opensource-socialnetwork.com/licence
 * @link      http://www.opensource-socialnetwork.com/licence
 */
echo '<div class="ossn-admin-login">';
echo '<h3>' . ossn_print('administration') . '</h3>';
echo ossn_view_form('admin/login', array('action' => ossn_site_url('action/admin/login'), 'class' => 'ossn-admin-form ossn-login-form'));
echo '</div>';
开发者ID:aidovoga,项目名称:opensource-socialnetwork,代码行数:15,代码来源:login.php

示例13: ossn_view_form

<?php

/**
 *    OpenSource-SocialNetwork
 *
 * @package   (Informatikon.com).ossn
 * @author    OSSN Core Team <info@opensource-socialnetwork.com>
 * @copyright 2014 iNFORMATIKON TECHNOLOGIES
 * @license   General Public Licence http://opensource-socialnetwork.com/licence
 * @link      http://www.opensource-socialnetwork.com/licence
 */
echo ossn_view_form('album/add', array('action' => ossn_site_url() . 'action/ossn/album/add', 'component' => 'OssnPhotos'), false);
开发者ID:aidovoga,项目名称:opensource-socialnetwork,代码行数:12,代码来源:add.php

示例14: ossn_print

?>
<div class="home-left-contents">
    <h1><?php 
echo ossn_print('home:top:heading', array(ossn_site_settings('site_name')));
?>
 </h1>
    <img src="<?php 
echo ossn_site_url();
?>
themes/<?php 
echo ossn_site_settings('theme');
?>
/images/home-people.png"/>
</div>
<div class="home-right-contents">
    <h1> <?php 
echo ossn_print('create:account');
?>
 </h1>

    <div class="h1-bottom"> <?php 
echo ossn_print('its:free');
?>
 </div>
    <br/>
    <?php 
echo ossn_view_form('signup', array('id' => 'ossn-home-signup', 'action' => ossn_site_url('action/user/register')));
?>
</div>
      
开发者ID:nongdanit-nongdanit,项目名称:ossn,代码行数:29,代码来源:index.php

示例15: ossn_view_form

<?php

/**
 *    OpenSource-SocialNetwork
 *
 * @package   (Informatikon.com).ossn
 * @author    OSSN Core Team <info@opensource-socialnetwork.com>
 * @copyright 2014 iNFORMATIKON TECHNOLOGIES
 * @license   General Public Licence http://opensource-socialnetwork.com/licence
 * @link      http://www.opensource-socialnetwork.com/licence
 */
echo ossn_view_form('admin/com_installer', array('action' => ossn_site_url('action/admin/com_install')));
开发者ID:aidovoga,项目名称:opensource-socialnetwork,代码行数:12,代码来源:com_installer.php


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