소스 검색

Remove the fieldset and label as the alignment is not working with bootstrap.

markjcrane 9 년 전
부모
커밋
7cefeb2c5e
2개의 변경된 파일14개의 추가작업 그리고 20개의 파일을 삭제
  1. 4 10
      core/install/install.php
  2. 10 10
      core/install/resources/page_parts/install_select_language.php

+ 4 - 10
core/install/install.php

@@ -50,8 +50,8 @@
 	$db_create_username = '';
 	$db_create_password = '';
 
-//detect the iso country code from the locale - 
-	//TBD $locale = Locale::getDefault();
+//detect the iso country code from the locale
+	//$locale = Locale::getDefault();
 	$timezone = 'UTC';
 	if (is_link('/etc/localtime')) {
 		// Mac OS X (and older Linuxes)
@@ -206,7 +206,7 @@
 		echo "	<input type='hidden' name='return_install_step' value='select_language'/>\n";
 		echo "	<input type='hidden' name='install_step' value='detect_config'/>\n";
 		echo "	<div style='text-align:right'>\n";
-		echo "    <button type='submit' class='btn' id='next'>".$text['button-next']."</button>\n";
+		echo "    <input type='submit' class='btn' id='next'>".$text['button-next']."</button>\n";
 		echo "	</div>\n";
 		echo "</form>\n";
 	} elseif($install_step == 'detect_config'){
@@ -336,12 +336,6 @@
 	//$_SESSION['permissions'][]['permission_name'] = 'superadmin';
 	//$_SESSION['menu'] = '';
 
-//show errors
-	ini_set('display_errors', '1');
-	//error_reporting (E_ALL); // Report everything
-	//error_reporting (E_ALL ^ E_NOTICE); // Report everything
-	error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING ); //hide notices and warnings
-
 //add the content to the template and then send output
 	$body = ob_get_contents(); //get the output from the buffer
 	ob_end_clean(); //clean the buffer
@@ -349,6 +343,7 @@
 //set a default template
 	$default_template = 'default';
 	$_SESSION['domain']['template']['name'] = $default_template;
+	$_SESSION['theme']['menu_brand_type']['text'] = "text";
 
 //set the default template path
 	$template_path = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/themes/'.$default_template.'/template.php';
@@ -369,7 +364,6 @@
 	eval('?>' . $template_content . '<?php ');
 	$content = ob_get_contents(); //get the output from the buffer
 	ob_end_clean(); //clean the buffer
-//echo $content;
 
 //send the content to the browser and then clear the variable
 	echo $content;

+ 10 - 10
core/install/resources/page_parts/install_select_language.php

@@ -36,21 +36,21 @@
 	echo "			".$text['label-select_language']."\n";
 	echo "		</td>\n";
 	echo "		<td class='vtable' align='left'>\n";
-	echo "			<fieldset class='container'>";
+	echo "			<table>";
 	foreach($_SESSION['app']['languages'] as $lang_code){
-		echo "			<fieldset class='container'>";
-		echo "				<label class='radio' style='width:200px;'>";
-		echo "				<input type='radio' name='install_language' value='$lang_code' id='lang_$lang_code' onchange='JavaScript:disable_next()'";
-		if($lang_code == $_SESSION['domain']['language']['code'])
-		{
+		echo "			<tr>";
+		echo "				<td>\n";
+		echo "					<input type='radio' name='install_language' value='$lang_code' id='lang_$lang_code' ";
+		if($lang_code == $_SESSION['domain']['language']['code']) {
 			echo " checked='checked'";
 		}
 		echo "/>";
-		echo "				<img src='<!--{project_path}-->/core/install/resources/images/flags/$lang_code.png' alt='$lang_code'/>&nbsp;".$text["language-$lang_code"];
-		echo "				</label>\n";
-		echo "			</fieldset>";
+
+		echo "					<img src='<!--{project_path}-->/core/install/resources/images/flags/$lang_code.png' alt='$lang_code'/>&nbsp;".$text["language-$lang_code"];
+		echo "				</td>";
+		echo "			</tr>";
 	}
-	echo "			</fieldset>";
+	echo "			</table>";
 	echo "			<br />\n";
 	echo "			".$text['description-select_language']."\n";
 	echo "		</td>\n";