mambo的cms源代码

源代码在线查看: admin.poll.html.php

软件大小: 2053 K
上传用户: bonylee_java
关键词: mambo cms 源代码
下载地址: 免注册下载 普通下载 VIP

相关代码

								/**
				* @version $Id: admin.poll.html.php,v 1.7 2005/02/15 14:49:42 kochp Exp $
				* @package Mambo
				* @subpackage Polls
				* @copyright (C) 2000 - 2005 Miro International Pty Ltd
				* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
				* Mambo is Free Software
				*/
				
				/** ensure this file is being included by a parent file */
				defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
				
				/**
				* @package Mambo
				* @subpackage Polls
				*/
				class HTML_poll {
				
					function showPolls( &$rows, &$pageNav, $option ) {
						global $my, $adminLanguage;
				
						mosCommonHTML::loadOverlib();
						?>
						
						
						
							
						
						
				
						
						
							
							
							
							
														
							
							
							
							
							
							
							
							
							
							
							
							
						
												$k = 0;
						for ($i=0, $n=count( $rows ); $i < $n; $i++) {
							$row = &$rows[$i];
				
							$link 	= 'index2.php?option=com_poll&task=editA&hidemainmenu=1&id='. $row->id;
				
							$task 	= $row->published ? 'unpublish' : 'publish';
							$img 	= $row->published ? 'publish_g.png' : 'publish_x.png';
							$alt = $row->published ? $adminLanguage->A_COMP_PUBLISHED : $adminLanguage->A_COMP_UNPUBLISHED;
				
							$checked 	= mosCommonHTML::CheckedOutProcessing( $row, $i );
							?>
															
								
								
								
								
								
								
																
								
								
								
																								
								
								
								
								
								
								
								
							
														$k = 1 - $k;
						}
						?>
						
						
				
												
						
						
						
											}
				
				
					function editPoll( &$row, &$options, &$lists ) {
						global $adminLanguage;
						mosMakeHtmlSafe( $row, ENT_QUOTES );
						?>
						
						function submitbutton(pressbutton) {
							var form = document.adminForm;
							if (pressbutton == 'cancel') {
								submitform( pressbutton );
								return;
							}
							// do field validation
							if (form.title.value == "") {
								alert( "" );
							} else if( isNaN( parseInt( form.lag.value ) ) ) {
								alert( "" );
							//} else if (form.menu.options.value == ""){
							//	alert( "Poll must have pages." );
							//} else if (form.adminForm.textfieldcheck.value == 0){
							//	alert( "Poll must have options." );
							} else {
								submitform( pressbutton );
							}
						}
						
						
						
						
							
							:
							
							 
							
							
						
						
				
						
						
							
							
							
						
						
							
							:
							
							
														
				   			 
				
							
							
							:
							
							
							
						
						
							
							:
							
							
														
						
						
							
							
							:
							
						
												for ($i=0, $n=count( $options ); $i < $n; $i++ ) {
							?>
							
								
								
								
								
																
							
													}
						for (; $i < 12; $i++) {
							?>
							
								
								
								
								
								
								
							
													}
						?>
						
				
						
						
																		
											}
				
				}
				?>
							

相关资源