本文整理汇总了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>
示例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);
示例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)) {
示例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)) {
示例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;
}
示例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'));
示例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));
示例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);
示例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);
示例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);
示例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'));
示例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>';
示例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);
示例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>
示例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')));