Merge code
This commit is contained in:
YuCheng Hu
2026-05-04 16:42:47 -04:00
15364 changed files with 6902871 additions and 0 deletions
@@ -0,0 +1,259 @@
#/**
# * Copyright (C) 2006-2010 YUCHENG HU
# *
# * ----------------------------------------------------------------------------------
# * HA SYSTEMS
# * http://www.hawebs.net
# * http://www.hawebs.org
# * http://www.tcivis.com
# *
# * Contact
# * [email protected] / [email protected]
# *
# * ----------------------------------------------------------------------------------
# * This program is free software: you can redistribute it and/or modify
# * it under the terms of the GNU General Public License as published by
# * the Free Software Foundation, either version 3 of the License, or
# * (at your option) any later version.
# *
# * This program is distributed in the hope that it will be useful,
# * but WITHOUT ANY WARRANTY; without even the implied warranty of
# * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# * GNU General Public License for more details.
# *
# * You should have received a copy of the GNU General Public License
# * along with this program. If not, see <http://www.gnu.org/licenses/>
# *
# * GNU GENERAL PUBLIC LICENSE
# *
# * ----------------------------------------------------------------------------------
# */
A POLL=投票调查
ALL=所有
#controller.php
CHANGES TO POLL SAVED=Changes to Poll saved
POLL SAVED=Poll saved
POLL SUCCESSFULLY DELETED=投票调查被成功删除了
THE SELECTED VOTES WERE SUCCESSFULY DELETED!=选择的投票被成功删除了!
THE SELECTED VOTES COULD NOT BE DELETED=选择的投票不能被删除
SELECT AN ITEM TO PUBLISH=选择一个可以发布的项目
SELECT AN ITEM TO UNPUBLISH=取消一个选择项目的发布
VOTES FOR THIS POLL WERE SUCCESSFULY DELETED!=所选择投票调查中的投票被成功删除了!
VOTES FOR THIS POLL COULD NOT BE DELETED!=所选择投票调查中的投票不能被删除!
APOLL CONFIGURATION COULD NOT BE SAVED!=Apoll 的配置不能被保存!
APOLL CONFIGURATION SUCCESSFULLY SAVED!=Apoll 的配置被成功保存!
POLLS COULD NOT BE IMPORTED!=投票调查不能被导入!
POLLS WERE SUCCESSFULY IMPORTED!=投票调查已经被成功导入了!
APOLL FILES FOR JOOMFISH WERE INSTALLED!=Apoll files for Joomfish were installed!
APOLL FILES FOR JOOMFISH! WERE NOT INSTALLED!=Apoll files for Joomfish! were not installed!
#install.apoll.php
POLLS FROM VERSION 1.2 SUCCESSFULLY IMPORTED=Polls from version 1.2 successfully imported
POLL OPTIONS FROM VERSION 1.2 SUCCESSFULLY IMPORTED=Poll options from version 1.2 successfully imported
RECORDED VOTES FROM VERSION 1.2 SUCCESSFULLY IMPORTED=Recorded votes from version 1.2 successfully imported
APOLL ADMIN MENU SUCCESSFULLY UPDATED=Apoll admin menu successfully updated
VERSION 1.2 TABLES DROPPED=Version 1.2 tables dropped
JOOMFISH COMPONENT FOUND! CONTENTELEMENT FILES WERE ALSO INSTALLED=Joomfish component found! Contentelement files were also installed
JOOMFISH COMPONENT WAS FOUND, BUT CONTENT ELEMENT FILES COULD NOT BE COPIED=Joomfish component was found, but content element files could not be copied
CONGRATULATIONS, APOLL COMPONENT IS SUCCESSFULLY INSTALLED!=Congratulations, Apoll component is successfully installed!
#uninstall.apoll.php
APOLL DATABASE HAS BEEN SUCCESSFULLY DROPPED.=Apoll database has been successfully dropped.
APOLL DATABASE HAS NOT BEEN DROPPED.=Apoll database has not been dropped.
#models/votes.php
SELECT POLL FROM THE LIST=Select Poll from the list
#tables/apoll.php
YOUR POLL MUST CONTAIN A TITLE.=Your Poll must contain a title.
YOUR POLL MUST HAVE A NON-ZERO LAG TIME.=Your Poll must have a non-zero lag time.
#views/apoll/view.html.php
THE POLL=投票调查
#vies/apoll/default.php
RESULTS=结果
VOTE=选票
#views/apoll/form.php
POLL=投票
PLEASE CORRECT THE START OR END DATE OF THE POLL=Please correct the start or end date of the poll
POLL MUST HAVE A TITLE=Poll must have a Title
POLL MUST HAVE AT LEAST 2 OPTIONS=Poll must have at least 2 options
GENERAL=General
PIE OPTIONS=Pie options
JOOMLA DEFAULT WAY=Joomla default way
LAG=Lag
HOURS BETWEEN VOTES=hours between votes
START=Start date
DATE TO START VOTING=Date to start voting
END=End date
DATE TO END VOTING=Date to end voting
OPTIONS DRAG DROP =Options (Drag and drop to reorder)
ADD OPTION=Add Option
REMOVE OPTION=Remove Option
OPTION=Option
COLOR=Color
VOTES=选票
RESET VOTES=Reset votes
VOTES WILL BE RESET WHEN YOU HIT SAVE/APPLY BUTTON=Votes will be reset when you hit Save/Apply button
#apolls/default.php
POLL MANAGER=投票管理
POLL TITLE=投票名称
OPTIONS=投票选项
LAG=Lag
EDIT POLL=编辑投票
#config/default.php
APOLL CONFIGURATION=Apoll 配置
WHEN UNINSTALLING, DROP THE APOLL DATABASE?=当插件卸载时,是否删除数据库中的数据?
IMPORT POLLS FROM JOOMLA! DEFAULT POLL COMPONENT=从 Joomla 的默认投票组件中导入已有的投票调查。
YOU HAVE CREATED %U POLLS WITH APOLL COMPONENT=你已经使用 Apoll 组件创建了一个 %u 投票调查。
YOU HAVE CREATED %U POLLS WITH NATIVE JOOMLA 1.5 POLL COMPONENT=你已经使用 Joomla 1.5 组件创建了一个 %u 投票调查。
CLICK IMPORT BUTTON TO IMPORT POLLS FROM THE NATIVE JOOMLA POLL COMPONENT=单击 import 按钮来从从 Joomla 的默认投票组件中导入已有的投票调查。
IMPORT=导入
INSTALL JOOMFISH FILES=安装 Joomfish 文件
INSTALL APOLL CONTENTELEMENT FILES FOR EASY TRANSLATION OF POLLS AND OPTIONS WITH JOOMFISH=从 polls 转换和从 Joomfish 的选项中,安装 Apoll 组件元素。
JOOMFISH COMPONENT IS NOT FOUND ON YOUR SYSTEM=没有在你的系统中找到Joomfish 组件。
APOLL FILES FOR JOOMFISH! ARE INSTALLED=Apoll 为 Joomfish 使用的所有文件已经被安装了。
APOLL FILES FOR JOOMFISH! ARE NOT INSTALLED=Apoll 为 Joomfish 使用的所有文件未被安装。
APOLL FILES FOR JOOMFISH! ARE NOT FOUND. YOU MUST MANUALY DOWNLOAD AND INSTALL THEM=Apoll 为 Joomfish 使用的所有未被找到,你必须手动下载。
DOWNLOAD=下载
#votes/default.php
FILTER BY USERS=按用户过滤
VOTES MANAGER FOR:=选票管理:
SELECT A POLL FROM THE DROPDOWN=在下拉菜单中选择一个投票调查
ARE YOU SURE YOU WANT TO DELETE THIS VOTE=你确定要删除这张选票吗?
VIEW RESULTS FOR:=投票结果:
DATE=日期
USER=用户
IP=IP 地址
GUEST=游客
ARE YOU SURE YOU WANT TO DELETE THIS VOTE=你确定要删除这张选票吗?
MENU ITEM LINK(S)=Menu Item Link(s)
#If the variable does not work in your language use following line
# PLEASE MAKE A SELECTION FROM THE LIST TO=Please select a Poll from the list
#instead of
PLEASE SELECT A POLL FROM THE DROPDOWN=Please select a Poll from the dropdown
PLEASE MAKE A SELECTION FROM THE LIST TO=Please select a Poll from the list to %s
PLEASE SELECT A POLL=Please select a poll
POLL=Poll
POLL LAYOUT=投票调查布局
SELECT POLL=选择投票调查
SHOW ON MENU ITEMS=显示菜单项
STANDARD POLL LAYOUT DESC=投票调查布局显示投票结果。
THIS COMPONENT MANAGES POLLS=这是一个管理投票调查的组件。
UNASSIGNED=未指定
#models/apoll.xml
VOTING=正在投票
ONLY REGISTERED=只有注册用户才可以投票。
ONLY REGISTERED DESC=Decide who can vote - only registered users or anyone
ONE VOTE PER USER=每一个用户只能投票一次
ONE VOTE PER USER DESC=If only registered users can vote, let them vote only once
ONE VOTE PER IP=每一个 IP 地址只能投票一次
ONE VOTE PER IP DESC=If anyone can vote, allow only one vote from ip
SHOW MSG=显示消息
SHOW MSG DESC=Show messages like: You have voted, Voting has not started ... etc
ALLOW VOTING=在组件中显示投票调查
ALLOW VOTING DESC=Show poll above the results and let users vote
SHOW RESULTS AS=Show result as:
SHOW RESULTS AS DESC=Choose how to show the results of the vote
JOOMLA DEFAULT WAY=Joomla default way
PIE CHART=Pie chart
SHOW HITS=Show hits
SHOW HITS DESC=If set to NO the number of hits each option has received will NOT be shown. Only percentages will show up.
SHOW VOTERS=Show tatal voters
SHOW VOTERS DESC=Show of hide the number of total voters that appears at the bottom of the pie/chart.
SHOW TIMES=Show times
SHOW TIMES DESC=Show the time the first and last votes has been casted
SHOW TITLE=Show title
SHOW TITLE DESC=Show poll title
SHOW DROPDOWN=Show dropdown
SHOW DROPDOWN DESC=Show all polls in a dropdown menu
#Pie options
PIE TRANSPARANCY=Pie transparancy
PIE TRANSPARANCY DESC=Set the transparancy of the pie animation, 0 means fully transparent
BACKGROUND COLOR=Background color #
BACKGROUND COLOR DESC =Color of the flash background. Hexademical value. INPUT EXAMPLE for white: ffffff
CIRCLE COLOR=Circle color #
CIRCLE COLOR DESC =Color of the pie border. Hexademical value. INPUT EXAMPLE: 505050
PIE WIDTH=Pie width
PIE WIDTH DESC=Width of the flash element. Can be set either in percents or in px. INPUT EXAMPLE: 100% or 400px
PIE HEIGHT=Pie height
PIE HEIGHT DESC=Height of the flash element. Value in pixels. INPUT EXAMPLE: 400
START ANGLE=Start angle
START ANGLE DESC=Start angle
RADIUS=Radis
RADIUS DESC=Radius of the pie
GRADIENT=Gradient
GRADIENT DESC=Gradient colors pie
SHOW LABELS=Show labels
SHOW LABELS DESC=Show labels
SHOW ZERO VOTES=Show options with no votes
SHOW ZERO VOTES DESC=Show options that have not received any votes yet
ANIMATION=Animation
ANIMATION DESC=Animate clicking on the slices
BOUNCE=Bounce
FADE=Fade
BOUNCE DINSTANCE=Bounce distance
BOUNCE DINSTANCE DESC=How far from the pie the slices can go
BACKGROUND IMAGE=Background image
BACKGROUND IMAGE DESC=Image that you want to put under the flash pie
LEFT=left
RIGHT=right
CENTER=center
TOP=top
BOTTOM=bottom
MIDDLE=middle
X POSITION=Image x position
X POSITION DESC=The horizontal align of the background image. Tip: Don't forget that you can edit your image to have a 20 pixel blank border around it so it is not 'squished' up against the edge of the chart.
Y POSITION=Image y position
Y POSITION DESC=The vertical align of the background image. Tip: Don't forget that you can edit your image to have a 20 pixel blank border around it so it is not 'squished' up against the edge of the chart.
FONT SIZE OF LABELS=Font size of labels
FONT SIZE LABELS DESC=Size of the font used for displaying the options
FONT COLOR OF LABELS=Font color of labels
FONT COLOR DESC=Color of the font used for displaying the options
OPTIONS LENGHT=Options text lenght
OPTIONS LENGHT DESC=Specify the lenght of the options text (number of charecters). This is needed because if your options text is too long it will make the pie smaller. Default is 30. All characters after that will not be shown.
#Joomla default chart parameters
CHART WIDTH=Chart width
OPTIONS FONT SIZE=Options text font size
OPTIONS FONT SIZE DESC=The size of the font of the optins text in px
CHART WIDTH DESC=Chart width in px or %
HEIGHT OF BARS=Height of bars
HEIGHT OF BARS DESC=Height in bars in pixels
BARBORDER=Bar border
BARBORDER DESC=Bar border - for instance: 1px solid #cccccc or 3px dashed green
BGBARCOLOR #=Background bar color #
BGBARCOLOR DESC=Color of the background of the underlying bar
BGBARBORDER=Background bar border
BGBARBORDER DESC=Border of the background bar - for instance: 1px solid #cccccc or 3px dashed green
#Version 2.0 Menu com_apoll->view polls
SHOW FILTER=Show search filter
SHOW FILTER DESC=Show input box for search and filter polls
SHOW STATUS=Show status
SHOW STATUS DESC=Show status of the poll (active or inactive)
SHOW STATUS AS=Show status as
SHOW STATUS AS DESC=How to show the status as image or just plain text
SHOW START DATE=Show start date
SHOW START DATE DESC=Show when the poll starts
SHOW END DATE=Show end date
SHOW END DATE DESC=Show when the poll expires
DATE FORMAT DESC=The format. %d %b %Y - %H:%M means day month year - hour:minute
SHOW NUM VOTERS=Show number of voters
SHOW NUM VOTERS DESC=Show number of voters
SHOW NUM OPTIONS=Show number of options
SHOW NUM OPTIONS DESC=Show number of options
@@ -0,0 +1,32 @@
#/**
# * Copyright (C) 2006-2010 YUCHENG HU
# *
# * ----------------------------------------------------------------------------------
# * HA SYSTEMS
# * http://www.hawebs.net
# * http://www.hawebs.org
# * http://www.tcivis.com
# *
# * Contact
# * [email protected] / [email protected]
# *
# * ----------------------------------------------------------------------------------
# * This program is free software: you can redistribute it and/or modify
# * it under the terms of the GNU General Public License as published by
# * the Free Software Foundation, either version 3 of the License, or
# * (at your option) any later version.
# *
# * This program is distributed in the hope that it will be useful,
# * but WITHOUT ANY WARRANTY; without even the implied warranty of
# * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# * GNU General Public License for more details.
# *
# * You should have received a copy of the GNU General Public License
# * along with this program. If not, see <http://www.gnu.org/licenses/>
# *
# * GNU GENERAL PUBLIC LICENSE
# *
# * ----------------------------------------------------------------------------------
# */
COM_APOLL=Apoll
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

+67
View File
@@ -0,0 +1,67 @@
##
# @version $Id: htaccess.txt 10492 2008-07-02 06:38:28Z ircmaxell $
# @package Joomla
# @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
# Joomla! is Free Software
##
#####################################################
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations. It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file. If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's. If they work,
# it has been set by your server administrator and you do not need it set here.
#
#####################################################
## Can be commented out if causes errors, see notes above.
Options +FollowSymLinks
#
# mod_rewrite in use
RewriteEngine On
########## Begin - Rewrite rules to block out some common exploits
## If you experience problems on your site block out the operations listed below
## This attempts to block the most common type of exploit `attempts` to Joomla!
#
# Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
#
########## End - Rewrite rules to block out some common exploits
# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla! Directory (just / for root)
# RewriteBase /
########## Begin - Joomla! core SEF Section
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ [NC]
RewriteRule (.*) index.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#
########## End - Joomla! core SEF Section
@@ -0,0 +1,94 @@
#/**
# * Copyright (C) 2006-2010 YUCHENG HU
# *
# * ----------------------------------------------------------------------------------
# * HA SYSTEMS
# * http://www.hawebs.net
# * http://www.hawebs.org
# * http://www.tcivis.com
# *
# * Contact
# * [email protected] / [email protected]
# *
# * ----------------------------------------------------------------------------------
# * This program is free software: you can redistribute it and/or modify
# * it under the terms of the GNU General Public License as published by
# * the Free Software Foundation, either version 3 of the License, or
# * (at your option) any later version.
# *
# * This program is distributed in the hope that it will be useful,
# * but WITHOUT ANY WARRANTY; without even the implied warranty of
# * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# * GNU General Public License for more details.
# *
# * You should have received a copy of the GNU General Public License
# * along with this program. If not, see <http://www.gnu.org/licenses/>
# *
# * GNU GENERAL PUBLIC LICENSE
# *
# * ----------------------------------------------------------------------------------
# */
DESCAPOLL=这个模块为 Apolls 组件,被用来显示投票调查的配置。你可以在选择显示一个特定的投票调查
MOD_APOLL=<em>mod_apoll</em>
POLL=投票调查
VOTE=选票
PROCESSING ...=正在处理 ....
TOTAL VOTES=总票数
PLEASE SELECT AN OPTION=请选择选项
VIEW DETAILS=查看结果
YOU HAVE ALREADY VOTED.=您已经投过票了。
PLEASE REGISTER TO VOTE=请注册后再投票。
ONLY ONE VOTE PER USER IS ALLOWED.=同一个用户只能投一次。
ONLY ONE VOTE PER USER IS ALLOWED.=同一个用户只能投一次。
ONLY ONE VOTE PER IP IS ALLOWED.=同一个 IP 地址只能投一次。
ONLY ONE VOTE EACH %U HOURS IS ALLOWED.=每 %u 小时内,只能投票一次。
THE VOTING FOR THIS POLL HAS NOT STARTED YET.=这个投票调查还未开始允许投票。
IT WILL START ON:=投票调查将开始于:
THE VOTING FOR THIS POLL HAS ENDED=当前投票已经结束了。
ON:=上:
READ THE RELATED ARTICLE >>=相关文章 >>
PARAMMODULEPOLL=选择希望显示的投票调查
SELECT POLL=选择投票调查
SHOW RANDOM POLL=随机显示投票调查
AJAX VOTE=Ajax 投票
AJAX VOTE DESC=当使用 Ajax 投票时 (仅仅当前模块适用,不适用整个页面)
SHOW POLL TITLE=显示投票调查标题
SHOW POLL TITLE DESC=在模块中显示投票调查
ONLY ONE COLOR=显示条的颜色
ONLY ONE COLOR DESC=如果你选择 YES,你必须指定下面所有显示条的颜色
BARS COLOR=显示条颜色
BARS COLOR DESC=结果显示条边框的颜色 (选择 YES 时适用)
BARS BORDER COLOR=显示条边框颜色
BARS BORDER COLOR DESC=显示条边框的颜色
ONLY REGISTERED=只有注册用户才能投票
ONLY REGISTERED DESC=如果选择 YES,只有成功登录的注册用户才可以投票
ONE VOTE PER USER=同一个用户只能投票一次
ONE VOTE PER USER DESC=只有注册用户才可以投票,并且只能投票一次
ONE VOTE PER IP=同一个 IP 只能投票一次
ONE VOTE PER IP DESC=如果任何人可以允许投票,记录中的 IP 只能被允许投票一次
IF VOTED=如果用户已投票了
IF VOTED DESC=用户已经投票后,应该显示什么
SHOW RESULTS=显示结果
SHOW DISABLED OPTIONS=显示禁用选项
SHOW VIEW DETAILS=Show "查看更多" 链接
SHOW VIEW DETAILS DESC=显示投票调查详细结果的链接
SHOW REL ARTICLE=为文章显示链接
SHOW REL ARTICLE DESC=为文章显示链接
RELATED ARTICLE LINK=相关文章链接
RELATED ARTICLE LINK DESC=链接到相关文章
IN NEW WINDOW=在新窗口中打开文章
IN NEW WINDOW DESC=如果选择 YES,那么链接将会在新窗口中打开
SHOW TOTAL=显示投票数
SHOW TOTAL DESC=显示总投票数
SHOW MESSAGES=显示消息
SHOW MESSAGES DESC=显示如下信息:投票已经结束;你已经投票过了
SHOW DETAILED MESSAGES=显示详细信息
SHOW DETAILED MESSAGES DESC=显示更多详细信息:为什么用户不允许投票,发布日期等... 显示消息的参数必须选择是
MSG DATE FORMAT=日期格式
MSG DATE FORMAT DESC=详细信息中的日期格式
PLEASE REGISTER TO VOTE=请注册后投票
@@ -0,0 +1,126 @@
<?php
# @version $Id: modules/mod_apoll/helper.php
# @package: Apoll Vote
# ===================================================
# @author
# Name: Hristo Genev
# Email: [email protected]
# Url: http://www.afactory.org
# ===================================================
# @copyright Copyright (C) 2008 aFactory.org All rights reserved.
# @license see http://www.gnu.org/licenses/lgpl.html GNU/LGPL.
# You can use, redistribute this file and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation.
# License http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL, see LICENSE.php
// no direct access
defined('_JEXEC') or die('Restricted access');
class modApollHelper
{
function getApollOptions($apoll_id)
{
$db =& JFactory::getDBO();
$query = "SELECT o.id, o.text, o.ordering" .
" FROM ".$db->nameQuote('#__apoll_options') . " AS o " .
" WHERE o.apoll_id = " . (int) $apoll_id .
" AND o.text <> ''" .
" ORDER BY o.ordering"
;
$db->setQuery($query);
if (!($options = $db->loadObjectList())) {
echo "helper ".$db->stderr();
return;
}
return $options;
}
// checks if user has voted (if cookie is set)
function alreadyVoted($id) {
global $mainframe;
$cookieName = JUtility::getHash( $mainframe->getName() . 'apoll' . $id );
$voted = JRequest::getVar( $cookieName, '0', 'COOKIE', 'INT');
return $voted;
}
function userVoted($user_id, $apoll_id) {
$db =& JFactory::getDBO();
$query = "SELECT date FROM ".$db->nameQuote('#__apoll_votes')
." WHERE apoll_id=".(int) $apoll_id
." AND user_id=".(int)$user_id
;
$db->setQuery($query);
return $userVoted=($db->loadResult())?1:0;
}
function ipVoted($apoll_id) {
$db =& JFactory::getDBO();
$ip = $_SERVER['REMOTE_ADDR'];
$query = "SELECT ip FROM ".$db->nameQuote('#__apoll_votes')
."WHERE apoll_id=".(int) $apoll_id."
AND ip = INET_ATON('".$ip."')"
;
$db->setQuery($query);
return $ipVoted=($db->loadResult()) ? 1:0;
}
function getResults($apoll_id) {
$db =& JFactory::getDBO();
$query = "SELECT o.*, COUNT(v.id) AS hits,
(SELECT COUNT(id) FROM ".$db->nameQuote('#__apoll_votes')." WHERE apoll_id=".$apoll_id.") AS votes
FROM ".$db->nameQuote('#__apoll_options')." AS o
LEFT JOIN ".$db->nameQuote('#__apoll_votes')." AS v
ON (o.id = v.option_id AND v.apoll_id = ".(int)$apoll_id . ")
WHERE o.apoll_id=".(int)$apoll_id ."
AND o.text <> ''
GROUP BY o.id
ORDER BY o.ordering";
$db->setQuery($query);
return $db->loadObjectList();
}
function getActivePolls() {
$db =& JFactory::getDBO();
$query = "SELECT id FROM ".$db->nameQuote('#__apoll_polls') .
" WHERE published = 1";
$db->setQuery($query);
if ($ids = $db->loadResultArray()) {
return $ids;
} else {
return false;
}
}
function getItemid($apoll_id) {
$component =& JComponentHelper::getComponent('com_apoll');
$menus =& JApplication::getMenu('site', array());
$items = $menus->getItems('componentid', $component->id);
$match = null;
$itemid = null;
if (isset($items)) {
foreach ($items as $item) {
if ((@$item->query['view'] == 'apoll') && (@$item->query['id'] == $apoll_id)) {
$itemid = $item->id;
break;
}
}
}
return '&Itemid='.$itemid;
}
}
?>
@@ -0,0 +1 @@
<html><body bgcolor="#FFFFFF"></body></html>
@@ -0,0 +1,188 @@
<?php
# @file: modules/mod_apoll/mod_apoll.php
# @package: aPoll
# ===================================================
# @author
# Name: Hristo Genev
# Email: [email protected]
# Url: http://www.afactory.org
# ===================================================
# @copyright Copyright (C) 2008 aFactory.org All rights reserved.
# @license see http://www.gnu.org/licenses/lgpl.html GNU/LGPL.
# You can use, redistribute this file and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation.
# License http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL, see LICENSE.php
// no direct access
defined('_JEXEC') or die('Restricted access');
// Include the syndicate functions only once
require_once (dirname(__FILE__).DS.'helper.php');
$tabclass_arr = array ('sectiontableentry2', 'sectiontableentry1');
$menu = &JSite::getMenu();
$items = $menu->getItems('link', 'index.php?option=com_apoll&view=apoll');
$itemid = isset($items[0]) ? '&Itemid='.$items[0]->id : '';
$details = "";
$apoll_id = $params->get( 'id', 0 );
//if Show random poll is selected
if (!$apoll_id) {
$ids = modApollHelper::getActivePolls();
if (count($ids) > 1) {
$apoll_id = $ids[array_rand($ids)];
} else {
$apoll_id = $ids[0];
}
}
$results = modApollHelper::getResults($apoll_id);
//print_r($results); exit;
//get the component params
JTable::addIncludePath(JPATH_ADMINISTRATOR.DS.'components'.DS.'com_apoll'.DS.'tables');
$apoll =& JTable::getInstance('apoll', 'Table');
$apoll->load( $apoll_id );
$apollParams = new JParameter($apoll->params);
//merge them with the module params
$params->merge($apollParams, $params);
$slug = ($apoll->alias=='')? $apoll->id : $apoll->id.":".$apoll->alias;
// check if cookie is set showing that the user has voted for this poll
$voted = modApollHelper::alreadyVoted($apoll_id);
// check if the registrated user has voted and if user has logged in
$user =& JFactory::getUser();
$userVoted = modApollHelper::userVoted($user->id, $apoll_id);
$guest = $user->guest;
// check if this ip has been recorder
$ipVoted = modApollHelper::ipVoted($apoll_id);
//reset the var display_poll
$display_poll = 0;
//check the start time and the end of poll
global $mainframe;
$date = &JFactory::getDate();
$date->setOffset($mainframe->getCfg('offset'));
$now = $date->toFormat();
if(($now>$apoll->publish_up) && ($now<$apoll->publish_down)) {
$display_submit = 1;
// if only registered users can vote
if ($params->get('only_registered')) {
//if the user is not a guest
if(!$guest) {
//if only one vote is allowed per logged user
if($params->get('one_vote_per_user')) {
//check if user has voted
if($userVoted) {
//display the poll with disabled options
$display_submit = 0;
$msg = "You have already voted.";
$details = JText::_("Only one vote per user is allowed.");
//user has not voted yet
} else {
//display the poll
$display_poll = 1;
$display_submit = 1;
$msg = "";
}
// if loggedin user are allowed to vote unlimited times
} else {
// Check the cookie
if($voted) {
$display_poll = 0;
$display_submit = 0;
$msg = "You have already voted.";
$details = JText::sprintf("Only one vote each %u hours is allowed.", $apoll->lag/60);
//hm check the ip please but only if allowed to do that
} elseif ($params->get('ip_check')) {
if($ipVoted) {
//display the poll with disabled options
$display_poll = 0;
$display_submit = 0;
$msg = "You have already voted.";
$details = JText::_("Only one vote per IP is allowed.");
//if user's ip has not been logged
}
//if user has not voted
} else {
//display the poll
$display_poll = 1;
$display_submit = 1;
$msg = "";
}
}
//if the user has not logged in
} else {
//display message please log in
$display_poll = 1;
$display_submit = 0;
$msg = "Please register to vote";
}
// if anybody can vote
} else {
//if user has voted, according to the cookie check
if($voted) {
//display the poll with disabled options or the results
$display_poll = ($params->get('if_voted'))? 1:0;
$display_submit = 0;
$msg = "You have already voted.";
$details = JText::sprintf("Only one vote each %u hours is allowed.", $apoll->lag/60);
//if user has not voted according to the cookie
} else {
//hm check the ip please but only if allowed to do that
if ($params->get('ip_check')) {
if($ipVoted) {
//display the poll with disabled options
$display_poll = ($params->get('if_voted'))? 1:0;
$display_submit = 0;
$msg = "You have already voted.";
$details = JText::_("Only one vote per IP is allowed.");
//if user's ip has not been logged
} else {
//display the poll
$display_poll = 1;
$display_submit = 1;
$msg = "";
}
//if we are not allowed to do the ip check
} else {
//display the poll
$display_poll = 1;
$display_submit = 1;
$msg = "";
}
}
}
} else {
$display_submit = 0;
$msg = JText::_("The voting for this poll has not started yet.")." ";
$publish_up = JFactory::getDate($apoll->publish_up);
$details = JText::_("It will start on:")." ".$publish_up->toFormat($params->get('msg_date_format'));
}
//if deadline has passed change the msg
if($now>$apoll->publish_down) {
$display_poll = 0;
$msg = "The voting for this poll has ended"." ";
$publish_down = JFactory::getDate($apoll->publish_down);
$details = JText::_("on:")." ".$publish_down->toFormat($params->get('msg_date_format'));
}
$disabled = ($display_submit)? '':'disabled="disabled"';
//if show messages is set to no, reset all messages
//if(!$params->get('show_msg')) {$msg ='<br />';}
if ( $apoll && $apoll->id ) {
$layout = JModuleHelper::getLayoutPath('mod_apoll');
$tabcnt = 0;
$options = modApollHelper::getApollOptions($apoll_id);
$itemid = modApollHelper::getItemid($apoll_id);
require($layout);
}
@@ -0,0 +1,86 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE install SYSTEM "http://dev.joomla.org/xml/1.5/module-install.dtd">
<install type="module" version="1.5.0">
<name>Apoll</name>
<author>Hristo Genev</author>
<creationDate>October 2009</creationDate>
<copyright>Copyright (C) 2009</copyright>
<license>http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL</license>
<authorEmail>[email protected]</authorEmail>
<authorUrl>http://www.afactory.org</authorUrl>
<version>2.1.005</version>
<description>Apoll module for voting</description>
<files>
<filename module="mod_apoll">mod_apoll.php</filename>
<filename module="mod_apoll">index.html</filename>
<filename module="mod_apoll">helper.php</filename>
<folder module="mod_apoll">tmpl</folder>
</files>
<languages folder="language">
<language tag="en-GB">en-GB.mod_apoll.ini</language>
</languages>
<params addpath="/administrator/components/com_apoll/elements">
<param name="moduleclass_sfx" type="text" default="" label="Module Class Suffix" description="PARAMMODULECLASSSUFFIX" />
<param type="spacer" />
<param name="id" type="apoll" default="" label="SELECT POLL" description="PARAMMODULEPOLL" />
<param name="ajax" type="radio" default="1" label="AJAX VOTE" description="AJAX VOTE DESC">
<option value="1">Yes</option>
<option value="0">NO</option>
</param>
<param name="show_poll_title" type="radio" default="1" label="SHOW POLL TITLE" description="SHOW POLL TITLE DESC">
<option value="1">Yes</option>
<option value="0">NO</option>
</param>
<param type="spacer" />
<param name="only_one_color" type="radio" default="1" label="ONLY ONE COLOR" description="ONLY ONE COLOR DESC">
<option value="1">Yes</option>
<option value="0">NO</option>
</param>
<param name="apoll_bars_color" type="text" default="cccccc" label="BARS COLOR" description="BARS COLOR DESC" size="7" />
<param name="apoll_bars_border_color" type="text" default="cccccc" label="BARS BORDER COLOR" description="BARS BORDER COLOR DESC" size="7" />
<param type="spacer" />
<param name="show_view_details" type="radio" default="1" label="SHOW VIEW DETAILS" description="SHOW VIEW DETAILS DESC">
<option value="1">Yes</option>
<option value="0">NO</option>
</param>
<param name="show_rel_article" type="radio" default="1" label="SHOW REL ARTICLE" description="SHOW REL ARTICLE DESC">
<option value="1">Yes</option>
<option value="0">NO</option>
</param>
<param name="rel_article" type="text" default="http://www.afactory.org" label="RELATED ARTICLE LINK" description="RELATED ARTICLE LINK DESC" size="40" />
<param name="rel_article_window" type="radio" default="_self" label="IN NEW WINDOW" description="ONE IN NEW WINDOW DESC">
<option value="_blank">Yes</option>
<option value="_self">NO</option>
</param>
<param type="spacer" />
<param name="show_total" type="radio" default="1" label="SHOW TOTAL" description="SHOW TOTAL DESC">
<option value="1">Yes</option>
<option value="0">NO</option>
</param>
<param name="show_msg" type="radio" default="1" label="SHOW MESSAGES" description="SHOW MESSAGES DESC">
<option value="1">Yes</option>
<option value="0">NO</option>
</param>
<param name="show_detailed_msg" type="radio" default="1" label="SHOW DETAILED MESSAGES" description="SHOW DETAILED MESSAGES DESC">
<option value="1">Yes</option>
<option value="0">NO</option>
</param>
<param name="msg_date_format" type="text" default="%d %b %Y - %H:%M " label="MSG DATE FORMAT" description="MSG DATE FORMAT DESC" size="25" />
</params>
<params group="advanced">
<param name="cache" type="list" default="1" label="Caching" description="Select whether to cache the content of this module">
<option value="1">Use global</option>
<option value="0">No caching</option>
</param>
<param name="cache_time" type="text" default="900" label="Cache Time" description="The time before the module is recached" />
</params>
</install>
@@ -0,0 +1,188 @@
<?php
# @file: modules/mod_apoll/tmpl/default.php
# @package: aPoll
# ===================================================
# @author
# Name: Hristo Genev
# Email: [email protected]
# Url: http://www.afactory.org
# ===================================================
# @copyright Copyright (C) 2008 aFactory.org All rights reserved.
# @license see http://www.gnu.org/licenses/lgpl.html GNU/LGPL.
# You can use, redistribute this file and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation.
# License http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL, see LICENSE.php
// no direct access
defined('_JEXEC') or die('Restricted access');
$document =& JFactory::getDocument();
$document->addStyleDeclaration("div#apoll_loading_".$apoll->id." {
background: url(media/system/images/mootree_loader.gif) 0% 50% no-repeat;
width:100%;
height:20px;
padding: 4px 0 0 20px;
}
");
?>
<div class="apoll<?php echo $params->get('moduleclass_sfx'); ?>" style="width:95%; border:none; padding:1px;">
<?php if ($params->get('show_poll_title')) : ?>
<h4 class="apoll_mod_title"><?php echo $apoll->title; ?></h4>
<?php endif; ?>
<div id="apolldiv_<?php echo $apoll->id;?>">
<?php if ($display_poll) { ?>
<form action="<?php echo JRoute::_( 'index.php' );?>" method="post" name="apoll_vote_<?php echo $apoll->id;?>" id="apoll_vote_<?php echo $apoll->id;?>">
<?php for ($i = 0, $n = count($options); $i < $n; $i ++) { ?>
<label for="voteid<?php echo $options[$i]->id;?>" class="<?php echo $tabclass_arr[$tabcnt].$params->get('moduleclass_sfx'); ?>" style="display:block; padding:2px;">
<input type="radio" name="voteid" id="voteid<?php echo $options[$i]->id;?>" value="<?php echo $options[$i]->id;?>" alt="<?php echo $options[$i]->id;?>" <?php echo $disabled; ?> />
<?php echo $options[$i]->text; ?>
</label>
<?php $tabcnt = 1 - $tabcnt; }
//show messages box
if($params->get('show_msg')) :
echo '<div id="mod_apoll_messages_'.$apoll->id.'" style="margin:5px;">'.JText::_($msg);
if($params->get('show_detailed_msg')) echo " ".$details;
echo '</div>';
endif;
?>
<div style="padding:2px;" id="apoll_buttons_<?php echo $apoll->id;?>" >
<input type="submit" id="submit_vote_<?php echo $apoll->id; ?>" name="task_button" class="button" value="<?php echo JText::_('Vote'); ?>" <?php echo $disabled; ?> />
</div>
<div id="apoll_loading_<?php echo $apoll->id;?>" style="display:none;"><?php echo JText::_('Processing ...'); ?>
</div>
<input type="hidden" name="option" value="com_apoll" />
<input type="hidden" name="id" value="<?php echo $apoll->id;?>" />
<?php if($params->get('ajax')) : ?>
<input type="hidden" name="format" value="raw" />
<input type="hidden" name="view" value="apoll" />
<?php else : ?>
<input type="hidden" name="task" value="vote" />
<?php endif;
echo "<div>".JHTML::_( 'form.token' )."</div>"; ?>
</form>
<?php if($params->get('ajax')) {
// add mootools
JHTML::_('behavior.mootools');
$updateValue = '';
for ($i=0; $i<count($results); $i++) {
if($params->get('only_one_color')) {
$background_color = $params->get('apoll_bars_color');
} else {
$background_color = "' + options.item($i).attributes[3].nodeValue + '";
}
$updateValue .= "<div style=\"width:100%\"><div style=\"padding: 3px;\">' + text.item($i).firstChild.nodeValue + ' - ' + options.item($i).attributes[1].nodeValue + '%</div><div class=\"apoll_module_bar_holder\" id=\"apoll_module_bar_holder".$i."\" style=\"width: 100%; height: 10px; padding:1px; border:1px solid #".$params->get('apoll_bars_border_color').";\"><div id=\"apoll_module_bar'+options.item($i).attributes[0].nodeValue+'\" style=\"background:#$background_color; width:' + options.item($i).attributes[1].nodeValue + '%; height:10px;\"></div></div></div>";
}
if($params->get('show_total')) {
$updateValue .= "<br /><b>".JText::_('Total votes')."</b>: ' + voters.item(0).firstChild.nodeValue + '";
}
$js = "
/* <![CDATA[ */
window.addEvent('domready', function()
{
$('apoll_vote_".$apoll->id."').addEvent('submit', function(e) {
// Prevent the submit event
new Event(e).stop();
var options = $('apoll_vote_".$apoll->id."').getElements('input[name=voteid]');
var nothing_selected = 1;
options.each(function(item, index){
if(item.checked==1) {nothing_selected = 0;}
});
if (nothing_selected) {
alert('".JText::_('Please select an option')."');
return false;
} else {
$('submit_vote_".$apoll->id."').disabled = 1;
$('apoll_loading_".$apoll->id."').setStyle('display','');
// Update the page
this.send({
onComplete: function(response, responseXML)
{
// get the XML nodes
var root = responseXML.documentElement;
var options = root.getElementsByTagName('option');
var text = root.getElementsByTagName('text');
//var percentages = root.getElementsByTagName('percentages');
var voters = root.getElementsByTagName('voters');
// prepare the XHTML
var updateValue = '".$updateValue."';
// update the page element 'update'
//$('apolldiv_".$apoll->id."').removeClass('ajax-loading');
$('apolldiv_".$apoll->id."').empty().setHTML(updateValue);
var apollSlide = new Fx.Slide('apoll_comp_form');
apollSlide.slideOut();
}});
}
});
});/* ]]> */";
$document->addScriptDeclaration( $js );
}
//If user has voted
} else {
foreach ($results as $row) :
$percent = ($row->votes)? round((100*$row->hits)/$row->votes, 1):0;
$width = ($percent)? $percent:2;
if($params->get('only_one_color'))
$background_color = $params->get('apoll_bars_color');
else
$background_color = $row->color; ?>
<div>
<div style="padding:3px;"><?php echo $row->text." - ".$percent; ?>%</div>
<div style="width:100%; height:10px; padding:1px; border:1px solid #<?php echo $params->get('apoll_bars_border_color'); ?>;">
<div style="width: <?php echo $width; ?>%; height:10px;background:#<?php echo $background_color; ?>;"></div>
</div>
</div>
<?php endforeach;
if($params->get('show_total'))
echo "<br /><b>".JText::_('Total votes')."</b>: ".$row->votes;
if($params->get('show_msg')) :
echo '<div id="mod_apoll_messages_'.$apoll->id.'" style="margin:5px;">'.JText::_($msg);
if($params->get('show_detailed_msg')) {
echo " ".$details;
}
echo '</div>';
endif;
} ?>
<!-- End of #apolldiv -->
</div>
<?php if (($params->get('show_view_details')) || ($params->get('rel_article_window'))) { ?>
<div id="apoll_links" style="padding-top:5px; ">
<?php if ($params->get('show_view_details')) : ?>
<a class="apoll_result_link" href="<?php echo JRoute::_('index.php?option=com_apoll&view=apoll&id='.$slug.$itemid); ?>"><?php echo JText::_('View details'); ?></a><br />
<?php endif; ?>
<?php if ($params->get('show_rel_article')) : ?>
<a class="apoll_result_link" target="<?php echo $params->get('rel_article_window'); ?>" href="<?php echo JRoute::_($params->get('rel_article')); ?>">
<?php echo JText::_('read the related article >>'); ?></a>
<?php endif; ?>
<?php } ?>
</div>
<!-- End of module .apoll -->
</div>
@@ -0,0 +1 @@
<html><body bgcolor="#FFFFFF"></body></html>
+15
View File
@@ -0,0 +1,15 @@
User-agent: *
Disallow: /administrator/
Disallow: /cache/
Disallow: /components/
Disallow: /images/
Disallow: /includes/
Disallow: /installation/
Disallow: /language/
Disallow: /libraries/
Disallow: /media/
Disallow: /modules/
Disallow: /plugins/
Disallow: /templates/
Disallow: /tmp/
Disallow: /xmlrpc/
+12
View File
@@ -0,0 +1,12 @@
dita.dir=D:/Dkits/DITA-OT
dita.zip=${dita.dir}/lib/DITA-OT1.5_full_easy_install_bin.zip
dita.script.dir=${dita.dir}/xsl
dita.dtd.dir=${dita.dir}/dtd
dita.css.dir=${dita.dir}/css
dita.resource.dir=${dita.dir}/resource
dita.output.dir=${basedir}/out
dita.src.dir=${basedir}/src
dita.temp.dir=${basedir}/temp
dita.lib.dir=${basedir}/lib
dita.extname=.dita
args.csspath=
@@ -0,0 +1,133 @@
/*
| This file is part of the DITA Open Toolkit project hosted on
| Sourceforge.net. See the accompanying license.txt file for
| applicable licenses.
*/
/*
| (c) Copyright IBM Corp. 2004, 2005 All Rights Reserved.
*/
.unresolved { background-color: skyblue; }
.noTemplate { background-color: yellow; }
.base { background-color: #ffffff; }
/* Add space for top level topics */
.nested0 { margin-top : 1em;}
/* div with class=p is used for paragraphs that contain blocks, to keep the XHTML valid */
.p {margin-top: 1em}
/* Default of italics to set apart figure captions */
.figcap { font-style: italic }
.figdesc { font-style: normal }
/* Use @frame to create frames on figures */
.figborder { border-style: solid; padding-left : 3px; border-width : 2px; padding-right : 3px; margin-top: 1em; border-color : Silver;}
.figsides { border-left : 2px solid; padding-left : 3px; border-right : 2px solid; padding-right : 3px; margin-top: 1em; border-color : Silver;}
.figtop { border-top : 2px solid; margin-top: 1em; border-color : Silver;}
.figbottom { border-bottom : 2px solid; border-color : Silver;}
.figtopbot { border-top : 2px solid; border-bottom : 2px solid; margin-top: 1em; border-color : Silver;}
/* Most link groups are created with <div>. Ensure they have space before and after. */
.ullinks { list-style-type: none }
.ulchildlink { margin-top: 1em; margin-bottom: 1em }
.olchildlink { margin-top: 1em; margin-bottom: 1em }
.linklist { margin-bottom: 1em }
.linklistwithchild { margin-left: 1.5em; margin-bottom: 1em }
.sublinklist { margin-left: 1.5em; margin-bottom: 1em }
.relconcepts { margin-top: 1em; margin-bottom: 1em }
.reltasks { margin-top: 1em; margin-bottom: 1em }
.relref { margin-top: 1em; margin-bottom: 1em }
.relinfo { margin-top: 1em; margin-bottom: 1em }
.breadcrumb { font-size : smaller; margin-bottom: 1em }
.prereq { margin-left : 20px;}
/* Set heading sizes, getting smaller for deeper nesting */
.topictitle1 { margin-top: 0pc; margin-bottom: .1em; font-size: 1.34em; }
.topictitle2 { margin-top: 1pc; margin-bottom: .45em; font-size: 1.17em; }
.topictitle3 { margin-top: 1pc; margin-bottom: .17em; font-size: 1.17em; font-weight: bold; }
.topictitle4 { margin-top: .83em; font-size: 1.17em; font-weight: bold; }
.topictitle5 { font-size: 1.17em; font-weight: bold; }
.topictitle6 { font-size: 1.17em; font-style: italic; }
.sectiontitle { margin-top: 1em; margin-bottom: 0em; color: black; font-size: 1.17em; font-weight: bold;}
.section { margin-top: 1em; margin-bottom: 1em }
.example { margin-top: 1em; margin-bottom: 1em }
div.tasklabel { margin-top: 1em; margin-bottom: 1em; }
h2.tasklabel, h3.tasklabel, h4.tasklabel, h5.tasklabel, h6.tasklabel { font-size: 100%; }
/* All note formats have the same default presentation */
.note { margin-top: 1em; margin-bottom : 1em;}
.notetitle { font-weight: bold }
.notelisttitle { font-weight: bold }
.tip { margin-top: 1em; margin-bottom : 1em;}
.tiptitle { font-weight: bold }
.fastpath { margin-top: 1em; margin-bottom : 1em;}
.fastpathtitle { font-weight: bold }
.important { margin-top: 1em; margin-bottom : 1em;}
.importanttitle { font-weight: bold }
.remember { margin-top: 1em; margin-bottom : 1em;}
.remembertitle { font-weight: bold }
.restriction { margin-top: 1em; margin-bottom : 1em;}
.restrictiontitle { font-weight: bold }
.attention { margin-top: 1em; margin-bottom : 1em;}
.attentiontitle { font-weight: bold }
.dangertitle { font-weight: bold }
.danger { margin-top: 1em; margin-bottom : 1em;}
.cautiontitle { font-weight: bold }
.caution { font-weight: bold; margin-bottom : 1em; }
/* Simple lists do not get a bullet */
ul.simple { list-style-type: none }
/* Used on the first column of a table, when rowheader="firstcol" is used */
.firstcol { font-weight : bold;}
/* Various basic phrase styles */
.bold { font-weight: bold; }
.boldItalic { font-weight: bold; font-style: italic; }
.italic { font-style: italic; }
.underlined { text-decoration: underline; }
.uicontrol { font-weight: bold; }
.parmname { font-weight: bold; }
.kwd { font-weight: bold; }
.defkwd { font-weight: bold; text-decoration: underline; }
.var { font-style : italic;}
.shortcut { text-decoration: underline; }
/* Default of bold for definition list terms */
.dlterm { font-weight: bold; }
/* Use CSS to expand lists with @compact="no" */
.dltermexpand { font-weight: bold; margin-top: 1em; }
*[compact="yes"]>li { margin-top: 0em;}
*[compact="no"]>li { margin-top: .53em;}
.liexpand { margin-top: 1em; margin-bottom: 1em }
.sliexpand { margin-top: 1em; margin-bottom: 1em }
.dlexpand { margin-top: 1em; margin-bottom: 1em }
.ddexpand { margin-top: 1em; margin-bottom: 1em }
.stepexpand { margin-top: 1em; margin-bottom: 1em }
.substepexpand { margin-top: 1em; margin-bottom: 1em }
/* Align images based on @align on topic/image */
div.imageleft { text-align: left }
div.imagecenter { text-align: center }
div.imageright { text-align: right }
div.imagejustify { text-align: justify }
/* The cell border can be turned on with
{border-right:solid}
This value creates a very thick border in Firefox (does not match other tables)
Firefox works with
{border-right:solid 1pt}
but this causes a barely visible line in IE */
.cellrowborder { border-left:none; border-top:none; border-right:solid 1px; border-bottom:solid 1px }
.row-nocellborder { border-left:none; border-right:none; border-top:none; border-right: hidden; border-bottom:solid 1px}
.cell-norowborder { border-top:none; border-bottom:none; border-left:none; border-bottom: hidden; border-right:solid 1px}
.nocellnorowborder { border:none; border-right: hidden;border-bottom: hidden }
pre.screen { padding: 5px 5px 5px 5px; border: outset; background-color: #CCCCCC; margin-top: 2px; margin-bottom : 2px; white-space: pre}
span.filepath { font-family:monospace }
@@ -0,0 +1,126 @@
/*
| This file is part of the DITA Open Toolkit project hosted on
| Sourceforge.net. See the accompanying license.txt file for
| applicable licenses.
*/
/*
| (c) Copyright IBM Corp. 2004, 2005 All Rights Reserved.
*/
.unresolved { background-color: skyblue; }
.noTemplate { background-color: yellow; }
.base { background-color: #ffffff; }
/* Add space for top level topics */
.nested0 { margin-top : 1em;}
/* div with class=p is used for paragraphs that contain blocks, to keep the XHTML valid */
.p {margin-top: 1em}
/* Default of italics to set apart figure captions */
.figcap { font-style: italic }
.figdesc { font-style: normal }
/* Use @frame to create frames on figures */
.figborder { border-style: solid; padding-left : 3px; border-width : 2px; padding-right : 3px; margin-top: 1em; border-color : Silver;}
.figsides { border-left : 2px solid; padding-left : 3px; border-right : 2px solid; padding-right : 3px; margin-top: 1em; border-color : Silver;}
.figtop { border-top : 2px solid; margin-top: 1em; border-color : Silver;}
.figbottom { border-bottom : 2px solid; border-color : Silver;}
.figtopbot { border-top : 2px solid; border-bottom : 2px solid; margin-top: 1em; border-color : Silver;}
/* Most link groups are created with <div>. Ensure they have space before and after. */
.ullinks { list-style-type: none }
.ulchildlink { margin-top: 1em; margin-bottom: 1em }
.olchildlink { margin-top: 1em; margin-bottom: 1em }
.linklist { margin-top: 1em; margin-bottom: 1em }
.linklistwithchild { margin-top: 1em; margin-right: 1.5em; margin-bottom: 1em }
.sublinklist { margin-top: 1em; margin-right: 1.5em; margin-bottom: 1em }
.relconcepts { margin-top: 1em; margin-bottom: 1em }
.reltasks { margin-top: 1em; margin-bottom: 1em }
.relref { margin-top: 1em; margin-bottom: 1em }
.relinfo { margin-top: 1em; margin-bottom: 1em }
.breadcrumb { font-size : smaller; margin-bottom: 1em }
.prereq { margin-right : 20px;}
/* Set heading sizes, getting smaller for deeper nesting */
.topictitle1 { margin-top: 0pc; margin-bottom: .1em; font-size: 1.34em; }
.topictitle2 { margin-top: 1pc; margin-bottom: .45em; font-size: 1.17em; }
.topictitle3 { margin-top: 1pc; margin-bottom: .17em; font-size: 1.17em; font-weight: bold; }
.topictitle4 { margin-top: .83em; font-size: 1.17em; font-weight: bold; }
.topictitle5 { font-size: 1.17em; font-weight: bold; }
.topictitle6 { font-size: 1.17em; font-style: italic; }
.sectiontitle { margin-top: 1em; margin-bottom: 0em; color: black; font-size: 1.17em; font-weight: bold;}
.section { margin-top: 1em; margin-bottom: 1em }
.example { margin-top: 1em; margin-bottom: 1em }
div.tasklabel { margin-top: 1em; margin-bottom: 1em; }
h2.tasklabel, h3.tasklabel, h4.tasklabel, h5.tasklabel, h6.tasklabel { font-size: 100%; }
/* All note formats have the same default presentation */
.note { margin-top: 1em; margin-bottom : 1em;}
.notetitle { font-weight: bold }
.notelisttitle { font-weight: bold }
.tip { margin-top: 1em; margin-bottom : 1em;}
.tiptitle { font-weight: bold }
.fastpath { margin-top: 1em; margin-bottom : 1em;}
.fastpathtitle { font-weight: bold }
.important { margin-top: 1em; margin-bottom : 1em;}
.importanttitle { font-weight: bold }
.remember { margin-top: 1em; margin-bottom : 1em;}
.remembertitle { font-weight: bold }
.restriction { margin-top: 1em; margin-bottom : 1em;}
.restrictiontitle { font-weight: bold }
.attention { margin-top: 1em; margin-bottom : 1em;}
.attentiontitle { font-weight: bold }
.dangertitle { font-weight: bold }
.danger { margin-top: 1em; margin-bottom : 1em;}
.cautiontitle { font-weight: bold }
.caution { font-weight: bold; margin-bottom : 1em; }
/* Simple lists do not get a bullet */
ul.simple { list-style-type: none }
/* Used on the first column of a table, when rowheader="firstcol" is used */
.firstcol { font-weight : bold;}
/* Various basic phrase styles */
.bold { font-weight: bold; }
.boldItalic { font-weight: bold; font-style: italic; }
.italic { font-style: italic; }
.underlined { text-decoration: underline; }
.uicontrol { font-weight: bold; }
.parmname { font-weight: bold; }
.kwd { font-weight: bold; }
.defkwd { font-weight: bold; text-decoration: underline; }
.var { font-style : italic;}
.shortcut { text-decoration: underline; }
/* Default of bold for definition list terms */
.dlterm { font-weight: bold; }
/* Use CSS to expand lists with @compact="no" */
.dltermexpand { font-weight: bold; margin-top: 1em; }
*[compact="yes"]>li { margin-top: 0em;}
*[compact="no"]>li { margin-top: .53em;}
.liexpand { margin-top: 1em; margin-bottom: 1em }
.sliexpand { margin-top: 1em; margin-bottom: 1em }
.dlexpand { margin-top: 1em; margin-bottom: 1em }
.ddexpand { margin-top: 1em; margin-bottom: 1em }
.stepexpand { margin-top: 1em; margin-bottom: 1em }
.substepexpand { margin-top: 1em; margin-bottom: 1em }
/* Align images based on @align on topic/image */
div.imageleft { text-align: left }
div.imagecenter { text-align: center }
div.imageright { text-align: right }
div.imagejustify { text-align: justify }
.cellrowborder { border-right:none; border-top:none; border-left:solid 1px; border-bottom:solid 1px }
.row-nocellborder { border-left:none; border-right:none; border-top:none; border-left: hidden; border-bottom:solid 1px}
.cell-norowborder { border-top:none; border-bottom:none; border-right:none; border-bottom: hidden; border-left:solid 1px}
.nocellnorowborder { border:none; border-left: hidden;border-bottom: hidden }
pre.screen { padding: 5px 5px 5px 5px; border: outset; background-color: #CCCCCC; margin-top: 2px; margin-bottom : 2px; white-space: pre}
Binary file not shown.

After

Width:  |  Height:  |  Size: 742 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 335 B

@@ -0,0 +1,110 @@
/**
* Copyright (C) 2006-2010 YUCHENG HU
*
* ---------------------------------------------
* HA WEBSYSTEMS
* http://www.hawebs.net
* https://www.hawebs.org/forums/computer/
*
* CONTACT
* [email protected] / [email protected]
*
* ---------------------------------------------
* [A] GNU GENERAL PUBLIC LICENSE GNU/LGPL
* [B] Apache License, Version 2.0
*
* ---------------------------------------------
* NOTE
*
* ---------------------------------------------
*/
* {
padding-top: 0px;
padding-right: 0;
padding-bottom: 0;
padding-left: 0;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
margin-left: 0px;
top: auto;
border: none;
}
.topictitle1 {
font-size: 2.5em;
background: url(img03.jpg) repeat-x left bottom;
}
.topictitle2 {
font-size: 2em;
}
body {
margin: 20px 0;
background: #FFFFFF urlrepeat-x left top;
text-align: left;
font-family: Geneva, Arial, Helvetica, sans-serif;
font-size: 0.9em;
color: #333333;
float: left;
padding-top: 0;
padding-right: 5px;
padding-bottom: 0;
padding-left: 30px;
}
h1, h2, h3 {
padding-bottom: 10px;
margin-bottom: 15px;
text-transform: uppercase;
font-family: Arial, Helvetica, sans-serif;
}
p, ul, ol, dl {
margin-top: 0.2em;
margin-bottom: 0.8em;
}
ul, ol, dl {
margin-left: 1.2em;
}
dt {
font-weight: bold;
}
dd {
margin-left: 3em;
}
blockquote {
margin-left: 3em;
margin-right: 3em;
font-style: italic;
}
a {
border: none;
text-decoration: underline;
color: #004080;
line-height: 1.4em;
}
a:hover {
border: none;
color: #FF3333;
text-decoration:none;
}
/* Header */
#header {
width: 960px;
height: 90px;
margin: 20;
float: left;
}
pre {
font-family: "Courier New", Courier, monospace;
}
.codeph{
font-family: "Courier New", Courier, monospace;
}
@@ -0,0 +1,52 @@
#Mon Jul 19 22:08:02 EDT 2010
copytosourcelist=
hreftargetslist=tasks/info/hacopyright.dita,tasks/info/apachelicense.dita,tasks/oss/oss.dita,tasks/web/seo.dita,tasks/web/web.dita,tasks/programing/programing.dita,tasks/programing/java.dita,tasks/oss/zencart.dita,tasks/programing/php.dita,tasks/pmt/pmt.dita,tasks/pmt/maven.dita,tasks/oss/hudson.dita,tasks/oss/vtiger.dita
fullditatopicfile=fullditatopic.list
fullditamapandtopicfile=fullditamapandtopic.list
fullditatopiclist=tasks/info/hacopyright.dita,tasks/info/apachelicense.dita,tasks/oss/oss.dita,tasks/web/seo.dita,tasks/web/web.dita,tasks/programing/programing.dita,tasks/programing/java.dita,tasks/oss/zencart.dita,tasks/programing/php.dita,tasks/pmt/pmt.dita,tasks/pmt/maven.dita,tasks/oss/hudson.dita,tasks/oss/vtiger.dita
fullditamapandtopiclist=tasks/info/hacopyright.dita,tasks/info/apachelicense.dita,tasks/oss/oss.dita,tasks/web/seo.dita,contents.ditamap,tasks/web/web.dita,tasks/programing/programing.dita,tasks/programing/java.dita,tasks/oss/zencart.dita,tasks/programing/php.dita,tasks/pmt/pmt.dita,tasks/pmt/maven.dita,tasks/oss/hudson.dita,tasks/oss/vtiger.dita
hrefditatopicfile=hrefditatopic.list
hrefditatopiclist=tasks/info/hacopyright.dita,tasks/web/seo.dita,tasks/programing/java.dita,tasks/oss/zencart.dita,tasks/programing/php.dita,tasks/pmt/maven.dita,tasks/oss/hudson.dita,tasks/oss/vtiger.dita
user.input.file=contents.ditamap
subtargetsfile=subtargets.list
fullditamapfile=fullditamap.list
copytotarget2sourcemapfile=copytotarget2sourcemap.list
subtargetslist=
fullditamaplist=contents.ditamap
copytotarget2sourcemaplist=
outditafilesfile=outditafiles.list
outditafileslist=
conreftargetsfile=conreftargets.list
conreffile=conref.list
conreftargetslist=
conreflist=
resourceonlyfile=resourceonly.list
imagefile=image.list
resourceonlylist=
imagelist=images/halogo.jpg
htmlfile=html.list
htmllist=
canditopicsfile=canditopics.list
canditopicslist=tasks/info/hacopyright.dita,tasks/info/apachelicense.dita,tasks/oss/oss.dita,tasks/web/seo.dita,tasks/web/web.dita,tasks/programing/programing.dita,tasks/programing/java.dita,tasks/oss/zencart.dita,tasks/programing/php.dita,tasks/pmt/pmt.dita,tasks/pmt/maven.dita,tasks/oss/hudson.dita,tasks/oss/vtiger.dita
keyreffile=keyref.list
subjectschemefile=subjectscheme.list
keyreflist=
subjectschemelist=
keyfile=key.list
codereffile=coderef.list
keylist=
codereflist=
user.input.file.listfile=usr.input.file.list
user.input.dir=D\:\\workdir\\hawebs\\resources\\hadocs\\projects\\catalog\\trunk\\src\\contents
uplevels=
tempdirToinputmapdir.relative.value=
conrefpushfile=conrefpush.list
flagimagefile=flagimage.list
skipchunkfile=skipchunk.list
conrefpushlist=
flagimagelist=
skipchunklist=
relflagimagefile=relflagimage.list
relflagimagelist=
copytosourcefile=copytosource.list
hreftargetsfile=hreftargets.list
@@ -0,0 +1,56 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE properties
SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
<entry key="copytosourcelist"></entry>
<entry key="hreftargetslist">tasks/info/hacopyright.dita,tasks/info/apachelicense.dita,tasks/oss/oss.dita,tasks/web/seo.dita,tasks/web/web.dita,tasks/programing/programing.dita,tasks/programing/java.dita,tasks/oss/zencart.dita,tasks/programing/php.dita,tasks/pmt/pmt.dita,tasks/pmt/maven.dita,tasks/oss/hudson.dita,tasks/oss/vtiger.dita</entry>
<entry key="fullditatopicfile">fullditatopic.list</entry>
<entry key="fullditamapandtopicfile">fullditamapandtopic.list</entry>
<entry key="fullditatopiclist">tasks/info/hacopyright.dita,tasks/info/apachelicense.dita,tasks/oss/oss.dita,tasks/web/seo.dita,tasks/web/web.dita,tasks/programing/programing.dita,tasks/programing/java.dita,tasks/oss/zencart.dita,tasks/programing/php.dita,tasks/pmt/pmt.dita,tasks/pmt/maven.dita,tasks/oss/hudson.dita,tasks/oss/vtiger.dita</entry>
<entry key="fullditamapandtopiclist">tasks/info/hacopyright.dita,tasks/info/apachelicense.dita,tasks/oss/oss.dita,tasks/web/seo.dita,contents.ditamap,tasks/web/web.dita,tasks/programing/programing.dita,tasks/programing/java.dita,tasks/oss/zencart.dita,tasks/programing/php.dita,tasks/pmt/pmt.dita,tasks/pmt/maven.dita,tasks/oss/hudson.dita,tasks/oss/vtiger.dita</entry>
<entry key="hrefditatopicfile">hrefditatopic.list</entry>
<entry key="hrefditatopiclist">tasks/info/hacopyright.dita,tasks/web/seo.dita,tasks/programing/java.dita,tasks/oss/zencart.dita,tasks/programing/php.dita,tasks/pmt/maven.dita,tasks/oss/hudson.dita,tasks/oss/vtiger.dita</entry>
<entry key="user.input.file">contents.ditamap</entry>
<entry key="subtargetsfile">subtargets.list</entry>
<entry key="fullditamapfile">fullditamap.list</entry>
<entry key="copytotarget2sourcemapfile">copytotarget2sourcemap.list</entry>
<entry key="subtargetslist"></entry>
<entry key="fullditamaplist">contents.ditamap</entry>
<entry key="copytotarget2sourcemaplist"></entry>
<entry key="outditafilesfile">outditafiles.list</entry>
<entry key="outditafileslist"></entry>
<entry key="conreftargetsfile">conreftargets.list</entry>
<entry key="conreffile">conref.list</entry>
<entry key="conreftargetslist"></entry>
<entry key="conreflist"></entry>
<entry key="resourceonlyfile">resourceonly.list</entry>
<entry key="imagefile">image.list</entry>
<entry key="resourceonlylist"></entry>
<entry key="imagelist">images/halogo.jpg</entry>
<entry key="htmlfile">html.list</entry>
<entry key="htmllist"></entry>
<entry key="canditopicsfile">canditopics.list</entry>
<entry key="canditopicslist">tasks/info/hacopyright.dita,tasks/info/apachelicense.dita,tasks/oss/oss.dita,tasks/web/seo.dita,tasks/web/web.dita,tasks/programing/programing.dita,tasks/programing/java.dita,tasks/oss/zencart.dita,tasks/programing/php.dita,tasks/pmt/pmt.dita,tasks/pmt/maven.dita,tasks/oss/hudson.dita,tasks/oss/vtiger.dita</entry>
<entry key="keyreffile">keyref.list</entry>
<entry key="subjectschemefile">subjectscheme.list</entry>
<entry key="keyreflist"></entry>
<entry key="subjectschemelist"></entry>
<entry key="keyfile">key.list</entry>
<entry key="codereffile">coderef.list</entry>
<entry key="keylist"></entry>
<entry key="codereflist"></entry>
<entry key="user.input.file.listfile">usr.input.file.list</entry>
<entry key="user.input.dir">D:\workdir\hawebs\resources\hadocs\projects\catalog\trunk\src\contents</entry>
<entry key="uplevels"></entry>
<entry key="tempdirToinputmapdir.relative.value"></entry>
<entry key="conrefpushfile">conrefpush.list</entry>
<entry key="flagimagefile">flagimage.list</entry>
<entry key="skipchunkfile">skipchunk.list</entry>
<entry key="conrefpushlist"></entry>
<entry key="flagimagelist"></entry>
<entry key="skipchunklist"></entry>
<entry key="relflagimagefile">relflagimage.list</entry>
<entry key="relflagimagelist"></entry>
<entry key="copytosourcefile">copytosource.list</entry>
<entry key="hreftargetsfile">hreftargets.list</entry>
</properties>
Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

@@ -0,0 +1,14 @@
<!-- This file is part of the DITA Open Toolkit project hosted on
Sourceforge.net. See the accompanying license.txt file for
applicable licenses.-->
<!-- (c) Copyright IBM Corp. 2004, 2005 All Rights Reserved. -->
<html>
<head>
<title>Web Sample</title>
</head>
<frameset cols="40%,*">
<frame name="navwin" src="toc.html" />
<frame name="contentwin" src="about:blank" scrolling="auto" />
</frameset>
</html>
@@ -0,0 +1,259 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="zh" xml:lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="DC.Type" content="reference"/>
<meta name="DC.Title" content="Apache 许可证"/>
<meta name="abstract" content=""/>
<meta name="description" content=""/>
<meta name="DC.subject" content="Apache, license"/>
<meta name="keywords" content="Apache, license"/>
<meta name="prodname" content="OSS 计算技术文档资源中心"/>
<meta name="version" content="1.0.0.0"/>
<meta name="brand" content="HAWEBS OSS"/>
<meta name="copyright" content="HAWEBS信息技术股份有限公司 2006, 2010" type="primary"/>
<meta name="DC.Rights.Owner" content="HAWEBS信息技术股份有限公司 2006, 2010" type="primary"/>
<meta name="DC.Format" content="XHTML"/>
<meta name="DC.Identifier" content="apachelicense"/>
<meta name="DC.Language" content="zh"/>
<link rel="stylesheet" type="text/css" href="../../css/commonltr.css"/>
<link rel="stylesheet" type="text/css" href="../../css/public.css"/>
<title>Apache 许可证</title>
</head>
<body id="apachelicense"><a name="apachelicense"><!-- --></a>
<h1 class="topictitle1">Apache 许可证</h1>
<div><p/>
<div class="section"><h2 class="sectiontitle">Apache许可证,版本2.0</h2>
<pre class="codeblock">
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use,
reproduction, and distribution as defined by Sections 1 through
9 of this document.
"Licensor" shall mean the copyright owner or entity authorized
by the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under
common control with that entity. For the purposes of this
definition, "control" means (i) the power, direct or indirect,
to cause the direction or management of such entity, whether by
contract or otherwise, or (ii) ownership of fifty percent (50%)
or more of the outstanding shares, or (iii) beneficial ownership
of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making
modifications, including but not limited to software source code,
documentation source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or
Object form, that is based on (or derived from) the Work and
for which the editorial revisions, annotations, elaborations,
or other modifications represent, as a whole, an original work
of authorship. For the purposes of this License, Derivative
Works shall not include works that remain separable from, or
merely link (or bind by name) to the interfaces of, the Work
and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or
additions to that Work or Derivative Works thereof, that is
intentionally submitted to Licensor for inclusion in the Work
by the copyright owner or by an individual or Legal Entity
authorized to submit on behalf of the copyright owner. For the
purposes of this definition,
"submitted" means any form of electronic, verbal, or written
communication sent to the Licensor or its representatives,
including but not limited to communication on electronic mailing
lists, source code control systems, and issue tracking systems
that are managed by, or on behalf of, the Licensor for the
purpose of discussing and improving the Work, but excluding
communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a
Contribution."
"Contributor" shall mean Licensor and any individual or Legal
Entity on behalf of whom a Contribution has been received by
Licensor and subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions
of this License, each Contributor hereby grants to You a
perpetual, worldwide, non-exclusive, no-charge, royalty-free,
irrevocable copyright license to reproduce, prepare Derivative
Works of, publicly display, publicly perform, sublicense, and
distribute the Work and such Derivative Works in Source or
Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have
made, use, offer to sell, sell, import, and otherwise transfer
the Work, where such license applies only to those patent claims
licensable by such Contributor that are necessarily infringed by
their Contribution(s) alone or by combination of their
Contribution(s) with the Work to which such Contribution(s) was
submitted. If You institute patent litigation against any entity
(including a cross-claim or counterclaim in a lawsuit) alleging
that the Work or a Contribution incorporated within the Work
constitutes direct or contributory patent infringement, then any
patent licenses granted to You under this License for that Work
shall terminate as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute
must include a readable copy of the attribution notices
contained within such NOTICE file, excluding those notices
that do not pertain to any part of the Derivative Works, in
at least one of the following places: within a NOTICE text
file distributed as part of the Derivative Works; within the
Source form or documentation, if provided along with the
Derivative Works; or, within a display generated by the
Derivative Works, if and wherever such third-party notices
normally appear. The contents of the NOTICE file are for
informational purposes only and do not modify the License.
You may add Your own attribution notices within Derivative
Works that You distribute, alongside or as an addendum to
the NOTICE text from the Work, provided that such additional
attribution notices cannot be construed as modifying the
License.
You may add Your own copyright statement to Your modifications
and may provide additional or different license terms and
conditions for use, reproduction, or distribution of Your
modifications, or for any such Derivative Works as a whole,
provided Your use, reproduction, and distribution of the Work
otherwise complies with the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state
otherwise, any Contribution intentionally submitted for
inclusion in the Work by You to the Licensor shall be under the
terms and conditions of this License, without any additional
terms or conditions. Notwithstanding the above, nothing herein
shall supersede or modify the terms of any separate license
agreement you may have executed with Licensor regarding such
Contributions.
6. Trademarks. This License does not grant permission to use the
trade names, trademarks, service marks, or product names of the
Licensor, except as required for reasonable and customary use
in describing the origin of the Work and reproducing the content
of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or
conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or
FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for
determining the appropriateness of using or redistributing the
Work and assume any risks associated with Your exercise of
permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and
grossly negligent acts) or agreed to in writing, shall any
Contributor be liable to You for damages, including any direct,
indirect, special, incidental, or consequential damages of any
character arising as a result of this License or out of the use
or inability to use the Work (including but not limited to
damages for loss of goodwill, work stoppage, computer failure or
malfunction, or any and all other commercial damages or losses),
even if such Contributor has been advised of the possibility of
such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by
reason of your accepting any such warranty or additional
liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied. See the License for the specific language governing
permissions and limitations under the License.
</pre>
</div>
</div>
</body>
</html>
@@ -0,0 +1,54 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="zh" xml:lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="DC.Type" content="reference"/>
<meta name="DC.Title" content="版权信息"/>
<meta name="prodname" content="OSS 计算技术文档资源中心"/>
<meta name="version" content="1.0.0.0"/>
<meta name="brand" content="HAWEBS OSS"/>
<meta name="copyright" content="HAWEBS信息技术股份有限公司 2006, 2010" type="primary"/>
<meta name="DC.Rights.Owner" content="HAWEBS信息技术股份有限公司 2006, 2010" type="primary"/>
<meta name="DC.Format" content="XHTML"/>
<meta name="DC.Identifier" content="rgscopyright"/>
<meta name="DC.Language" content="zh"/>
<link rel="stylesheet" type="text/css" href="../../css/commonltr.css"/>
<link rel="stylesheet" type="text/css" href="../../css/public.css"/>
<title>版权信息</title>
</head>
<body id="rgscopyright"><a name="rgscopyright"><!-- --></a>
<h1 class="topictitle1">版权信息</h1>
<div>
<div class="section">
<p><img src="../../images/halogo.jpg" alt="HAWEBS信息技术股份有限公司(LOGO)"/></p>
<p>版权所有 2004-2010 软件开发小组</p>
<p>中文参考手册版权所有 2006 - 2010 HAWEBS信息技术有限公司</p>
<p>基于Apache许可证, 版本2.0。你必须在基于许可证的要求下使用本软件,你可以通过下面的链接来获得相关的具体内容 <a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank">http://www.apache.org/licenses/LICENSE-2.0</a>。</p>
</div>
<div class="section"><h2 class="sectiontitle">相关信息</h2>
<p><a href="http://forums.hawebs.net/computer/" target="_blank">OSS 计算技术</a></p>
<p><a href="http://news.hawebs.net/" target="_blank">淡远资讯中心</a></p>
<p><a href="http://docs.hawebs.net/xhtml/" target="_blank">文档库</a></p>
<p><a href="apachelicense.html#apachelicense">Apache 许可证</a></p>
</div>
</div>
</body>
</html>
@@ -0,0 +1,56 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="zh" xml:lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="DC.Type" content="concept"/>
<meta name="DC.Title" content="Hudson"/>
<meta name="abstract" content="Hudson 项目使用的所有技术文档。"/>
<meta name="description" content="Hudson 项目使用的所有技术文档。"/>
<meta name="DC.subject" content="OSS, 开放源代码, Hudson"/>
<meta name="keywords" content="OSS, 开放源代码, Hudson"/>
<meta name="DC.Relation" scheme="URI" content="../../tasks/oss/oss.html"/>
<meta name="prodname" content="OSS 计算技术文档资源中心"/>
<meta name="version" content="1.0.0.0"/>
<meta name="brand" content="HAWEBS OSS"/>
<meta name="copyright" content="HAWEBS信息技术股份有限公司 2006, 2010" type="primary"/>
<meta name="DC.Rights.Owner" content="HAWEBS信息技术股份有限公司 2006, 2010" type="primary"/>
<meta name="DC.Format" content="XHTML"/>
<meta name="DC.Identifier" content="hudson_tutorials"/>
<meta name="DC.Language" content="zh"/>
<link rel="stylesheet" type="text/css" href="../../css/commonltr.css"/>
<link rel="stylesheet" type="text/css" href="../../css/public.css"/>
<title>Hudson</title>
</head>
<body id="hudson_tutorials"><a name="hudson_tutorials"><!-- --></a>
<h1 class="topictitle1">Hudson</h1>
<div><p>Hudson 项目使用的所有技术文档。</p>
<p>我们不保证所有的翻译都是正确的。</p>
<p>如果因为使用我们的翻译而导致了系统损坏或数据丢失,我们将不负有任何责任。</p>
<div class="p"><ul>
<li>
<a href="http://docs.hawebs.net/xhtml/hudson/tutorials/mainp.html" target="_blank">Hudson 快速入门</a>
</li>
</ul>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>父主题:</strong> <a href="../../tasks/oss/oss.html" title="OSS 开放源代码中的项目使用的技术文档。">OSS 开放源代码</a></div>
</div>
</div>
</body>
</html>
@@ -0,0 +1,54 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="zh" xml:lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="DC.Type" content="concept"/>
<meta name="DC.Title" content="Hudson"/>
<meta name="abstract" content="Hudson 项目使用的所有技术文档。"/>
<meta name="description" content="Hudson 项目使用的所有技术文档。"/>
<meta name="DC.subject" content="OSS, 开放源代码, Hudson"/>
<meta name="keywords" content="OSS, 开放源代码, Hudson"/>
<meta name="DC.Relation" scheme="URI" content="../../../tasks/oss/oss.html"/>
<meta name="DC.Relation" scheme="URI" content="../../../tasks/oss/hudson/hudson_tutorials.html"/>
<meta name="prodname" content="OSS 计算技术文档资源中心"/>
<meta name="version" content="1.0.0.0"/>
<meta name="brand" content="HAWEBS OSS"/>
<meta name="copyright" content="HAWEBS信息技术股份有限公司 2006, 2010" type="primary"/>
<meta name="DC.Rights.Owner" content="HAWEBS信息技术股份有限公司 2006, 2010" type="primary"/>
<meta name="DC.Format" content="XHTML"/>
<meta name="DC.Identifier" content="hudson_tutorials"/>
<meta name="DC.Language" content="zh"/>
<link rel="stylesheet" type="text/css" href="../../../css/commonltr.css"/>
<link rel="stylesheet" type="text/css" href="../../../css/public.css"/>
<title>Hudson</title>
</head>
<body id="hudson_tutorials"><a name="hudson_tutorials"><!-- --></a>
<h1 class="topictitle1">Hudson</h1>
<div><p>Hudson 项目使用的所有技术文档。</p>
<p>我们不保证所有的翻译都是正确的。</p>
<p>如果因为使用我们的翻译而导致了系统损坏或数据丢失,我们将不负有任何责任。</p>
</div>
<div>
<ul class="ullinks">
<li class="ulchildlink"><strong><a href="../../../tasks/oss/hudson/hudson_tutorials.html">Hudson 快速入门</a></strong><br/>
Hudson 快速入门参考手册</li>
</ul>
<div class="familylinks">
<div class="parentlink"><strong>父主题:</strong> <a href="../../../tasks/oss/oss.html" title="OSS 开放源代码中的项目使用的技术文档。">OSS 开放源代码</a></div>
</div>
</div>
</body>
</html>
@@ -0,0 +1,51 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="zh" xml:lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="DC.Type" content="concept"/>
<meta name="DC.Title" content="Hudson 快速入门"/>
<meta name="abstract" content="Hudson 快速入门参考手册"/>
<meta name="description" content="Hudson 快速入门参考手册"/>
<meta name="DC.subject" content="OSS, 开放源代码"/>
<meta name="keywords" content="OSS, 开放源代码"/>
<meta name="DC.Relation" scheme="URI" content="../../../tasks/oss/hudson/hudson.html"/>
<meta name="prodname" content="OSS 计算技术文档资源中心"/>
<meta name="version" content="1.0.0.0"/>
<meta name="brand" content="HAWEBS OSS"/>
<meta name="copyright" content="HAWEBS信息技术股份有限公司 2006, 2010" type="primary"/>
<meta name="DC.Rights.Owner" content="HAWEBS信息技术股份有限公司 2006, 2010" type="primary"/>
<meta name="DC.Format" content="XHTML"/>
<meta name="DC.Identifier" content="hudson_tutorials"/>
<meta name="DC.Language" content="zh"/>
<link rel="stylesheet" type="text/css" href="../../../css/commonltr.css"/>
<link rel="stylesheet" type="text/css" href="../../../css/public.css"/>
<title>Hudson 快速入门</title>
</head>
<body id="hudson_tutorials"><a name="hudson_tutorials"><!-- --></a>
<h1 class="topictitle1">Hudson 快速入门</h1>
<div><p>Hudson 快速入门参考手册</p>
<p>Hudson 用来监视可重复执行的工作。例如,用来构建一个软工程或者后台守护进程自动执行任务。Hudson 可以完成很多工作。</p>
<div class="p">参考手册的电子书请单击下面 连接。<div class="note"><span class="notetitle">注:</span> 单击链接将会弹出新窗口。</div>
</div>
<p><a href="http://docs.hawebs.net/xhtml/hudson/tutorials/mainp.html" target="_blank">Hudson 快速入门</a></p>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>父主题:</strong> <a href="../../../tasks/oss/hudson/hudson.html" title="Hudson 项目使用的所有技术文档。">Hudson</a></div>
</div>
</div>
</body>
</html>
@@ -0,0 +1,55 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="zh" xml:lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="DC.Type" content="concept"/>
<meta name="DC.Title" content="OSS 开放源代码"/>
<meta name="abstract" content="OSS 开放源代码中的项目使用的技术文档。"/>
<meta name="description" content="OSS 开放源代码中的项目使用的技术文档。"/>
<meta name="DC.subject" content="OSS, 开放源代码"/>
<meta name="keywords" content="OSS, 开放源代码"/>
<meta name="DC.Relation" scheme="URI" content="../../tasks/oss/vtiger.html"/>
<meta name="DC.Relation" scheme="URI" content="../../tasks/oss/hudson.html"/>
<meta name="DC.Relation" scheme="URI" content="../../tasks/oss/zencart.html"/>
<meta name="prodname" content="OSS 计算技术文档资源中心"/>
<meta name="version" content="1.0.0.0"/>
<meta name="brand" content="HAWEBS OSS"/>
<meta name="copyright" content="HAWEBS信息技术股份有限公司 2006, 2010" type="primary"/>
<meta name="DC.Rights.Owner" content="HAWEBS信息技术股份有限公司 2006, 2010" type="primary"/>
<meta name="DC.Format" content="XHTML"/>
<meta name="DC.Identifier" content="oss"/>
<meta name="DC.Language" content="zh"/>
<link rel="stylesheet" type="text/css" href="../../css/commonltr.css"/>
<link rel="stylesheet" type="text/css" href="../../css/public.css"/>
<title>OSS 开放源代码</title>
</head>
<body id="oss"><a name="oss"><!-- --></a>
<h1 class="topictitle1">OSS 开放源代码</h1>
<div><p>OSS 开放源代码中的项目使用的技术文档。</p>
<p>我们不保证所有的翻译都是正确的。</p>
<p>如果因为使用我们的翻译而导致了系统损坏或数据丢失,我们将不负有任何责任。</p>
</div>
<div>
<ul class="ullinks">
<li class="ulchildlink"><strong><a href="../../tasks/oss/vtiger.html">vTiger</a></strong><br/>
vTiger 项目使用的所有技术文档。</li>
<li class="ulchildlink"><strong><a href="../../tasks/oss/hudson.html">Hudson</a></strong><br/>
Hudson 项目使用的所有技术文档。</li>
<li class="ulchildlink"><strong><a href="../../tasks/oss/zencart.html">ZenCart</a></strong><br/>
zencart 项目使用的所有技术文档。</li>
</ul>
</div>
</body>
</html>
@@ -0,0 +1,56 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="zh" xml:lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="DC.Type" content="concept"/>
<meta name="DC.Title" content="vTiger"/>
<meta name="abstract" content="vTiger 项目使用的所有技术文档。"/>
<meta name="description" content="vTiger 项目使用的所有技术文档。"/>
<meta name="DC.subject" content="OSS, 开放源代码, vTiger"/>
<meta name="keywords" content="OSS, 开放源代码, vTiger"/>
<meta name="DC.Relation" scheme="URI" content="../../tasks/oss/oss.html"/>
<meta name="prodname" content="OSS 计算技术文档资源中心"/>
<meta name="version" content="1.0.0.0"/>
<meta name="brand" content="HAWEBS OSS"/>
<meta name="copyright" content="HAWEBS信息技术股份有限公司 2006, 2010" type="primary"/>
<meta name="DC.Rights.Owner" content="HAWEBS信息技术股份有限公司 2006, 2010" type="primary"/>
<meta name="DC.Format" content="XHTML"/>
<meta name="DC.Identifier" content="vtiger"/>
<meta name="DC.Language" content="zh"/>
<link rel="stylesheet" type="text/css" href="../../css/commonltr.css"/>
<link rel="stylesheet" type="text/css" href="../../css/public.css"/>
<title>vTiger</title>
</head>
<body id="vtiger"><a name="vtiger"><!-- --></a>
<h1 class="topictitle1">vTiger</h1>
<div><p>vTiger 项目使用的所有技术文档。</p>
<p>我们不保证所有的翻译都是正确的。</p>
<p>如果因为使用我们的翻译而导致了系统损坏或数据丢失,我们将不负有任何责任。</p>
<div class="p"><ul>
<li>
<a href="http://docs.hawebs.net/xhtml/vtiger/user_manual/mainp.html" target="_blank">vTiger 用户手册</a>
</li>
</ul>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>父主题:</strong> <a href="../../tasks/oss/oss.html" title="OSS 开放源代码中的项目使用的技术文档。">OSS 开放源代码</a></div>
</div>
</div>
</body>
</html>
@@ -0,0 +1,56 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="zh" xml:lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="DC.Type" content="concept"/>
<meta name="DC.Title" content="ZenCart"/>
<meta name="abstract" content="zencart 项目使用的所有技术文档。"/>
<meta name="description" content="zencart 项目使用的所有技术文档。"/>
<meta name="DC.subject" content="OSS, 开放源代码, zencart"/>
<meta name="keywords" content="OSS, 开放源代码, zencart"/>
<meta name="DC.Relation" scheme="URI" content="../../tasks/oss/oss.html"/>
<meta name="prodname" content="OSS 计算技术文档资源中心"/>
<meta name="version" content="1.0.0.0"/>
<meta name="brand" content="HAWEBS OSS"/>
<meta name="copyright" content="HAWEBS信息技术股份有限公司 2006, 2010" type="primary"/>
<meta name="DC.Rights.Owner" content="HAWEBS信息技术股份有限公司 2006, 2010" type="primary"/>
<meta name="DC.Format" content="XHTML"/>
<meta name="DC.Identifier" content="zencart"/>
<meta name="DC.Language" content="zh"/>
<link rel="stylesheet" type="text/css" href="../../css/commonltr.css"/>
<link rel="stylesheet" type="text/css" href="../../css/public.css"/>
<title>ZenCart</title>
</head>
<body id="zencart"><a name="zencart"><!-- --></a>
<h1 class="topictitle1">ZenCart</h1>
<div><p>zencart 项目使用的所有技术文档。</p>
<p>我们不保证所有的翻译都是正确的。</p>
<p>如果因为使用我们的翻译而导致了系统损坏或数据丢失,我们将不负有任何责任。</p>
<div class="p"><ul>
<li>
<a href="http://docs.hawebs.net/xhtml/zencart/tutorials/mainp.html" target="_blank">zencart 指南</a>
</li>
</ul>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>父主题:</strong> <a href="../../tasks/oss/oss.html" title="OSS 开放源代码中的项目使用的技术文档。">OSS 开放源代码</a></div>
</div>
</div>
</body>
</html>

Some files were not shown because too many files have changed in this diff Show More