Changeset 12479
- Timestamp:
- 09/04/11 09:39:57 (2 years ago)
- Files:
-
- freepbx/trunk/amp_conf/htdocs/admin/assets/css/mainstyle-rtl.css (added)
- freepbx/trunk/amp_conf/htdocs/admin/assets/css/mainstyle.css (modified) (8 diffs)
- freepbx/trunk/amp_conf/htdocs/admin/assets/js/script.legacy.js (modified) (1 diff)
- freepbx/trunk/amp_conf/htdocs/admin/page.modules.php (modified) (2 diffs)
- freepbx/trunk/amp_conf/htdocs/admin/views/header.php (modified) (2 diffs)
- freepbx/trunk/amp_conf/htdocs/admin/views/menu.php (modified) (2 diffs)
- modules/branches/2.10/backup/bin/backup.php (modified) (2 diffs)
- modules/branches/2.10/ivr/install.php (modified) (1 diff)
- modules/branches/2.10/ivr/views/entries.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/trunk/amp_conf/htdocs/admin/assets/css/mainstyle.css
r12449 r12479 7 7 body { 8 8 font-family: Helvetica, Geneva, Arial, SunSans-Regular, sans-serif, Verdana, "Trebuchet MS", SunSans-Regular; 9 font-size:11pt ;9 font-size:11pt ; 10 10 } 11 11 html, … … 72 72 float: left; 73 73 } 74 /**** global elements ****/75 a {76 text-decoration:none;77 color:#072966;78 }79 a:visited {80 color:#072966;81 }82 a:hover {83 color:#ff9933;84 }85 h1, h2, h3, h4, h5, h6 {86 color: gray;87 }88 input, textarea {89 border:1px solid #ccc;90 }91 input[type=text]:hover {border-color: #666 #CCC #CCC #CCC;}92 hr {93 background-color: #DEEDF7;94 border: 1px solid #AED0EA;95 height: 3px;96 border-radius: 5px;97 }98 .attention {99 background:#ff9933;100 /*background:red;*/101 color:white;102 font-weight:bold;103 }104 .attention a {105 color:white;106 font-weight:bold;107 }108 .attention img {109 vertical-align:top;110 padding-right:5px;111 }112 div.attention {113 border:1px solid black;114 padding:5px;115 }116 .warning {117 padding:10px 10px 0 10px;118 margin:5px 0;119 background:rgb(255,242,202);120 border:1px dotted #ccc;121 }122 .warning p {123 margin-top: 0;124 margin-bottom:10px;125 }126 127 #login_message {128 position:absolute;129 top:55px;130 right:5px;131 width: 180px;132 font-size:12px;133 background-color: transparent;134 }135 #login_message a:link {136 background-color: transparent;137 }138 #message-old {139 position:absolute;140 top:85px;141 right:15px;142 font-size:12px;143 }144 145 146 147 /***** report nav *****/148 #reportnav {149 position:absolute;150 /*151 top:0px;152 left:10px;153 */154 top:0px;155 left:280px;156 padding: 0 0 0 0;157 list-style-type: none;158 font-size:12px;159 border-right:1px solid black;160 }161 #reportnav ul {162 margin:0;163 padding:0;164 }165 #reportnav li {166 display: inline;167 border-left:1px solid black;168 padding-left:6px;169 padding-right:6px;170 }171 #reportframe {172 position:relative;173 top:1.5em;174 left:10px;175 padding: 0 0 0 0;176 }177 #panelframe {178 position:relative;179 top:0;180 left:10px;181 padding: 0 0 0 0;182 }183 184 74 185 75 /***** info popups *****/ 186 a.info {76 a.info:link, a.info:hover { 187 77 cursor:text; 188 78 color:black; 79 text-decoration: none; 189 80 } 190 81 .help { … … 255 146 256 147 148 /**** global elements ****/ 149 a { 150 text-decoration:none; 151 color:#2779AA; 152 } 153 a:visited { 154 color:#072966; 155 } 156 a:hover { 157 color:#ff9933; 158 } 159 h1, h2, h3, h4, h5, h6 { 160 color: gray; 161 } 162 input, textarea { 163 border:1px solid #ccc; 164 } 165 input[type=text]:hover {border-color: #666 #CCC #CCC #CCC;} 166 hr { 167 background-color: #DEEDF7; 168 border: 1px solid #AED0EA; 169 height: 3px; 170 border-radius: 5px; 171 } 172 .attention { 173 background:#ff9933; 174 /*background:red;*/ 175 color:white; 176 font-weight:bold; 177 } 178 .attention a { 179 color:white; 180 font-weight:bold; 181 } 182 .attention img { 183 vertical-align:top; 184 padding-right:5px; 185 } 186 div.attention { 187 border:1px solid black; 188 padding:5px; 189 } 190 .warning { 191 padding:10px 10px 0 10px; 192 margin:5px 0; 193 background:rgb(255,242,202); 194 border:1px dotted #ccc; 195 } 196 .warning p { 197 margin-top: 0; 198 margin-bottom:10px; 199 } 200 201 #login_message { 202 position:absolute; 203 top:55px; 204 right:5px; 205 width: 180px; 206 font-size:12px; 207 background-color: transparent; 208 } 209 #login_message a:link { 210 background-color: transparent; 211 } 212 #message-old { 213 position:absolute; 214 top:85px; 215 right:15px; 216 font-size:12px; 217 } 218 257 219 /************************* For modules page *************************/ 258 220 #modulelist ul { … … 279 241 position:absolute; 280 242 left:2px; 281 /*width:252px;282 white-space: nowrap;283 overflow: hidden;*/284 243 } 285 244 #modulelist .moduleversion { 286 245 position:absolute; 287 246 left: 230px; 288 /*width:124px;289 white-space: nowrap;290 overflow: hidden;*/291 247 } 292 248 #modulelist .modulepublisher { 293 249 position:absolute; 294 250 left: 350px; 295 /*width:204px;296 white-space: nowrap;297 overflow: hidden;*/298 251 } 299 252 #modulelist .modulestatus { … … 324 277 } 325 278 326 /* for the tabber */279 /* for the tabber --modue-admin--*/ 327 280 #modulelist .tabber, #modulelist .tabberlive { 328 281 } … … 379 332 } 380 333 381 /************************* reload window *************************/382 /* disbaled by defualt*/383 #button_reload {384 display:none;385 }386 #__dimScreen {387 cursor:not-allowed;388 }389 #reloadBox {390 border:2px solid #333;391 background:#ff9933;392 z-index:1000;393 position:fixed;394 width:450px;395 height:320px;396 /* background-image: url(../images/reloadbox.png); TODO: no image exists? */397 background-repeat: repeat-x;398 }399 #reloadBox h3 {400 margin:0.1em 0em 1em 0em;401 color:white;402 text-align:center;403 }404 #reloadBox a:hover {405 color:white;406 }407 #reload_confirm {408 padding: 0em 1em 0em 1em;409 }410 #reload_confirm ul {411 list-style-type:none;412 }413 #reload_confirm ul li {414 margin-top:0.4em;415 }416 #reload_reloading {417 text-align:center;418 cursor:wait;419 }420 #reload_reloading h2 {421 margin-top:1.5em;422 margin-bottom:1.5em;423 }424 #reload_reloading img {425 text-align:center;426 }427 428 #reload_response div.moreinfo {429 overflow:auto;430 height:200px;431 width:94%;432 margin-left:2%;433 border:1px solid #ccc;434 padding:2px;435 }436 #reload_response div.moreinfo pre {437 font-size:70%;438 }439 #reload_response div.buttons {440 text-align:center;441 padding-top:10px;442 }443 444 #moduleBox {445 border:2px solid #333;446 background:#ff9933;447 z-index:1000;448 position:fixed;449 width:450px;450 height:400px;451 /* background-image: url(../images/reloadbox.png); TODO: no image exists? */452 background-repeat: repeat-x;453 }454 #moduleBox iframe {455 width:420px;456 height:400px;457 border:0;458 padding: 0em 1em 0em 1em;459 }460 461 /* Need to get rid of scroll bar at bottom of iframe-how*/462 #moduleBox iframe body {463 min-width: 300px;464 }465 #moduleBoxContents {466 padding: 0em 1em 0em 1em;467 }468 #moduleBoxContents h4 {469 margin:0.1em 0em 1em 0em;470 color: white;471 }472 #moduleBoxContents a {473 text-align:right;474 }475 #moduleBoxContents a:hover {476 color:white;477 }478 479 334 480 335 /**** tables with alternating colors ***/ … … 486 341 } 487 342 /************** jQuery UI *************************/ 488 489 /* sortables and others*/ 490 .ui-sortable li{cursor:move} 491 492 .ui-widget{font-size:11px !important;} 493 /*.ui-widget .ui-widget { font-size: .8em; }*/ 494 495 .menubar > a + ul{display: none;;} 496 .menubar { padding-left: 3px;/*box-shadow:0px 1px 8px #ccc*/} 497 .menubar .ui-menu { width: 200px; position: absolute; outline: none; z-index: 9999; } 498 .menubar .ui-menu .ui-icon { float: right; } 499 .menubar .ui-menu li.ui-state-disabled { 343 .ui-widget{font-size:11px !important;}/*text size AND layout size of ui eleements*/ 344 .ui-sortable li{cursor:move}/* sortables and others*/ 345 346 /*top menu bar*/ 347 .menubar > a + ul{display: none;}/*dropdown menus should be intially hidden*/ 348 .menubar > a {margin: 2px 1px;}/*spacing around menubar buttons*/ 349 .menubar { padding-left: 3px;}/*spacing beteen firsl/last button and toolbar edge*/ 350 .menubar .ui-menu {position: absolute; outline: none; z-index: 9999;}/*actual toolbar layout*/ 351 .menubar .ui-menu .ui-icon { float: right; }/*button icons*/ 352 .menubar .button-right{float: right; right: 4px;}/*right side buttons*/ 353 .menubar .ui-menu li.ui-state-disabled {/*disabled menue items*/ 500 354 font-weight: bold; 501 355 padding: .0em .4em; … … 503 357 line-height: 1.5; 504 358 } 359 /*not sure what this does -MB*/ 505 360 .menubar .ui-menu a { 506 361 color: #2E6E9E; 507 362 font-weight: normal; 508 363 } 509 .menubar .button-right{float: right; right: 4px;} 510 364 365 /*submit button size*/ 511 366 input[type="submit"]{ height: 25px;} 367 368 /*rnav*/ 512 369 .rnav .ui-widget-content {background: none;} 513 370 .rnav .ui-widget-content a {color: #072966;} freepbx/trunk/amp_conf/htdocs/admin/assets/js/script.legacy.js
r12450 r12479 675 675 switch (action) { 676 676 case 'show': 677 $('#button_reload').show(); 677 //weird css is needed to keep the bitton from "juming" a bit out of place 678 $('#button_reload').show().css('display', 'inline-block'); 678 679 break; 679 680 case 'hide': freepbx/trunk/amp_conf/htdocs/admin/page.modules.php
r12445 r12479 48 48 ?> 49 49 <script type="text/javascript"> 50 $(document).ready(function(){ 51 $('.repo_boxes').find('input[type=checkbox]').button() 52 }) 50 53 function toggleInfoPane(pane) { 51 54 var style = document.getElementById(pane).style; … … 1008 1011 <tr> 1009 1012 <td> 1010 < a href="#" class="info"><?php echo _("Repositories")?><span><?php echo $tooltip ?></span></a>1013 <?php echo fpbx_label(_("Repositories"), $tooltip); ?> 1011 1014 </td><td> 1012 1015 <table> 1013 <tr >1016 <tr class="repo_boxes"> 1014 1017 <td> 1015 1018 <input id="standard_repo" type="checkbox" name="active_repos[standard]" value="1" tabindex="<?php echo ++$tabindex;?>"<?php echo isset($active_repos['standard'])?"checked":""?>/> 1016 <label for=" active_repos[standard]"><?php echo _("Basic") ?></label>1019 <label for="standard_repo"><?php echo _("Basic") ?></label> 1017 1020 </td> 1018 1021 <td> 1019 1022 <input id="extended_repo" type="checkbox" name="active_repos[extended]" value="1" tabindex="<?php echo ++$tabindex;?>"<?php echo isset($active_repos['extended'])?"checked":""?>/> 1020 <label for=" active_repos[extended]"><?php echo _("Extended") ?></label>1023 <label for="extended_repo"><?php echo _("Extended") ?></label> 1021 1024 </td> 1022 1025 <td> 1023 1026 <input id="unsupported_repo" type="checkbox" name="active_repos[unsupported]" value="1" tabindex="<?php echo ++$tabindex;?>"<?php echo isset($active_repos['unsupported'])?"checked":""?>/> 1024 <label for=" active_repos[unsupported]"><?php echo _("Unsupported") ?></label>1027 <label for="unsupported_repo"><?php echo _("Unsupported") ?></label> 1025 1028 </td> 1026 1029 <td> 1027 1030 <input id="commercial_repo" type="checkbox" name="active_repos[commercial]" value="1" tabindex="<?php echo ++$tabindex;?>"<?php echo isset($active_repos['commercial'])?"checked":""?>/> 1028 <label for=" active_repos[commercial]"><?php echo _("Commercial") ?></label>1031 <label for="commercial_repo"><?php echo _("Commercial") ?></label> 1029 1032 </td> 1030 1033 </tr> freepbx/trunk/amp_conf/htdocs/admin/views/header.php
r12445 r12479 28 28 $html .= '<link href="' . framework_css().$version_tag . '" rel="stylesheet" type="text/css">'; 29 29 30 //it seems extremely difficult to put jquery in the footer with the other scripts 31 $html .= '<script src="//ajax.googleapis.com/ajax/libs/jquery/' . $jquery . '/jquery.min.js"></script>'; 32 $html .= '<script>window.jQuery || document.write(\'<script src="assets/js/jquery-' 33 . $jquery . '.min.js"><\/script>\')</script>'; 34 35 30 //include rtl stylesheet if using a rtl langauge 31 if (isset($_COOKIE['lang']) && in_array($_COOKIE['lang'], array('he_IL'))) { 32 $html .= '<link href="assets/css/mainstyle-rtl.css" rel="stylesheet" type="text/css" />'; 33 } 36 34 // Insert a custom CSS sheet if specified (this can change what is in the main CSS) 37 35 if ($amp_conf['BRAND_CSS_CUSTOM']) { … … 39 37 . $version_tag . '" rel="stylesheet" type="text/css">'; 40 38 } 39 40 //it seems extremely difficult to put jquery in the footer with the other scripts 41 $html .= '<script src="//ajax.googleapis.com/ajax/libs/jquery/' . $jquery . '/jquery.min.js"></script>'; 42 $html .= '<script>window.jQuery || document.write(\'<script src="assets/js/jquery-' 43 . $jquery . '.min.js"><\/script>\')</script>'; 44 41 45 $html .= '</head>'; 42 46 43 47 //open body 44 $html .= '<body' 45 . (isset($_COOKIE['lang']) && $_COOKIE['lang'] == "he_IL" ? ' dir="rtl"' : '') 46 . '>'; 48 $html .= '<body>'; 47 49 48 50 $html .= '<div id="page">';//open page freepbx/trunk/amp_conf/htdocs/admin/views/menu.php
r12471 r12479 5 5 6 6 if (isset($fpbx_menu) && is_array($fpbx_menu)) { 7 //set roduct type for use in the logo. Default to pbxact 8 /* if (function_exists('sysadmin_get_license')) { 9 $lic = sysadmin_get_license(); 10 if (isset($lic['Product-Name']) && $lic['Product-Name'] == 'PBXtended') { 11 $logo = '<a id="fpbx_link_button" href="http://www.pbxtended.com" target="_blank" data-button-icon-secondary="ui-icon-extlink"><img src="/admin/modules/shmzskin/assets/images/pbxtended-logo.png" alt="PBXtended" style="float:left"/></a>'; 12 } else { 13 $logo = '<a id="fpbx_link_button" href="http://www.pbxact.com" target="_blank" data-button-icon-secondary="ui-icon-extlink"><img src="/admin/modules/shmzskin/assets/images/pbxact-logo.png" alt="PBXact" style="float:left"/></a>'; 14 } 15 } else { 16 $logo = '<a id="fpbx_link_button" href="http://www.pbxact.com" target="_blank" data-button-icon-secondary="ui-icon-extlink"><img src="/admin/modules/shmzskin/assets/images/pbxact-logo.png" alt="PBXact" style="float:left"/></a>'; 17 }*/ 7 /* $logo = '<a id="fpbx_link_button" href="http://www.pbxact.com" target="_blank" data-button-icon-secondary="ui-icon-extlink"><img src="/admin/modules/shmzskin/assets/images/pbxact-logo.png" alt="PBXact" style="float:left"/></a>'; 8 */ 18 9 19 10 foreach ($fpbx_menu as $mod => $deets) { … … 82 73 83 74 if ( isset($_SESSION['AMP_user']) && ($authtype != 'none')) { 84 $out .= '< button id="user_logout"'75 $out .= '<a id="user_logout" href="#"' 85 76 . ' class="button-right ui-widget-content ui-state-default" title="logout">' 86 77 . _('Logout: ') . (isset($_SESSION['AMP_user']->username) ? $_SESSION['AMP_user']->username : 'ERROR') 87 . '</ button>';78 . '</a>'; 88 79 } 89 80 90 $out .= '< button id="button_reload" data-button-icon-primary="ui-icon-gear" class="ui-state-error ">'91 . _("Apply Config") .'</ button>';81 $out .= '<a id="button_reload" href="#" data-button-icon-primary="ui-icon-gear" class="ui-state-error ">' 82 . _("Apply Config") .'</a>'; 92 83 93 $out .= '</div>'; //'<div style="width:100%;height:0px;clear:both"></div>';84 $out .= '</div>'; 94 85 $out .= '</div>';//header 95 86 $out .= '<div id="page_body">'; modules/branches/2.10/backup/bin/backup.php
r12438 r12479 51 51 backup_log(_('Creating backup...')); 52 52 $b->create_backup_file(); 53 } else { 53 } else {//run backup remotly 54 54 $opts = array( 55 55 'bu' => $bu, … … 87 87 } 88 88 89 backup_log(_('Storing backup...')); 90 $b->store_backup(); 89 backup_log(_('Storing backup...')); 90 $b->store_backup(); 91 92 backup_log(_('Running post-backup hooks...')); 93 $b->run_hooks('post-backup'); 94 95 if ($b->b['bu_server'] == "0") { //local backup? Were done! 96 backup_log(_('Backup successfully completed!')); 97 } else { 98 //TODO: restore to this server if requested 99 dbug($b->b['manifest']); 100 } 91 101 92 backup_log(_('Running post-backup hooks...')); 93 $b->run_hooks('post-backup'); 94 95 backup_log(_('Backup successfully completed!')); 96 //TODO: restore to this server if requested 97 } else { 102 } else { //invalid backup 98 103 backup_log('backup id ' . $vars['id'] . ' not found!'); 99 104 } modules/branches/2.10/ivr/install.php
r12290 r12479 7 7 if($amp_conf["AMPDBENGINE"] == "sqlite3") { 8 8 sql("CREATE TABLE IF NOT EXISTS `ivr_details` ( 9 `id` int(11) NOT NULL PRIMARY KEY AUTOINCREMENT,9 `id` int(11) NOT NULL PRIMARY KEY AUTOINCREMENT, 10 10 `name` varchar(50) default NULL, 11 11 `description` varchar(150) default NULL, modules/branches/2.10/ivr/views/entries.php
r12291 r12479 62 62 $ret = ''; 63 63 $ret .= $table->generate(); 64 $ret .= '<img class="IVREntries" src="modules/ivr/assets/images/add.png" style="cursor:pointer" title="' . _('Add Entr ie')64 $ret .= '<img class="IVREntries" src="modules/ivr/assets/images/add.png" style="cursor:pointer" title="' . _('Add Entry') 65 65 . '" id="add_entrie">'; 66 66
