Changeset 12479

Show
Ignore:
Timestamp:
09/04/11 09:39:57 (2 years ago)
Author:
mbrevda
Message:

re #5342 - some style tweaks, add proper bi-di supposrt the languages that require it

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/trunk/amp_conf/htdocs/admin/assets/css/mainstyle.css

    r12449 r12479  
    77body {  
    88  font-family: Helvetica, Geneva, Arial, SunSans-Regular, sans-serif, Verdana, "Trebuchet MS", SunSans-Regular; 
    9   font-size:11pt
     9  font-size:11pt
    1010} 
    1111html, 
     
    7272  float: left; 
    7373} 
    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  
    18474 
    18575/***** info popups *****/ 
    186 a.info
     76a.info:link, a.info:hover
    18777  cursor:text; 
    18878  color:black; 
     79  text-decoration: none; 
    18980} 
    19081.help { 
     
    255146 
    256147 
     148/**** global elements ****/ 
     149a { 
     150  text-decoration:none; 
     151  color:#2779AA; 
     152} 
     153a:visited { 
     154  color:#072966; 
     155} 
     156a:hover { 
     157  color:#ff9933; 
     158} 
     159h1, h2, h3, h4, h5, h6 { 
     160  color: gray; 
     161} 
     162input, textarea { 
     163  border:1px solid #ccc; 
     164} 
     165input[type=text]:hover {border-color: #666 #CCC #CCC #CCC;} 
     166hr { 
     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} 
     186div.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 
    257219/************************* For modules page *************************/ 
    258220#modulelist ul { 
     
    279241  position:absolute; 
    280242  left:2px; 
    281   /*width:252px; 
    282   white-space: nowrap; 
    283   overflow: hidden;*/ 
    284243} 
    285244#modulelist .moduleversion { 
    286245  position:absolute; 
    287246  left: 230px; 
    288   /*width:124px; 
    289   white-space: nowrap; 
    290   overflow: hidden;*/ 
    291247} 
    292248#modulelist .modulepublisher { 
    293249  position:absolute; 
    294250  left: 350px; 
    295   /*width:204px; 
    296   white-space: nowrap; 
    297   overflow: hidden;*/ 
    298251} 
    299252#modulelist .modulestatus { 
     
    324277} 
    325278 
    326 /* for the tabber */ 
     279/* for the tabber --modue-admin--*/ 
    327280#modulelist .tabber, #modulelist .tabberlive { 
    328281} 
     
    379332} 
    380333 
    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  
    479334 
    480335/**** tables with alternating colors ***/ 
     
    486341} 
    487342/************** 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*/ 
    500354  font-weight: bold; 
    501355  padding: .0em .4em; 
     
    503357  line-height: 1.5; 
    504358} 
     359/*not sure what this does -MB*/ 
    505360.menubar .ui-menu  a { 
    506361  color: #2E6E9E; 
    507362  font-weight: normal; 
    508363} 
    509 .menubar .button-right{float: right; right: 4px;} 
    510  
     364 
     365/*submit button size*/ 
    511366input[type="submit"]{ height: 25px;} 
     367 
     368/*rnav*/ 
    512369.rnav .ui-widget-content {background: none;} 
    513370.rnav .ui-widget-content a {color: #072966;} 
  • freepbx/trunk/amp_conf/htdocs/admin/assets/js/script.legacy.js

    r12450 r12479  
    675675  switch (action) { 
    676676    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'); 
    678679      break; 
    679680    case 'hide': 
  • freepbx/trunk/amp_conf/htdocs/admin/page.modules.php

    r12445 r12479  
    4848  ?> 
    4949  <script type="text/javascript"> 
     50  $(document).ready(function(){ 
     51    $('.repo_boxes').find('input[type=checkbox]').button() 
     52  }) 
    5053  function toggleInfoPane(pane) { 
    5154    var style = document.getElementById(pane).style; 
     
    10081011      <tr> 
    10091012        <td> 
    1010           <a href="#" class="info"><?php echo _("Repositories")?><span><?php echo $tooltip ?></span></a
     1013          <?php echo fpbx_label(_("Repositories"), $tooltip); ?
    10111014        </td><td> 
    10121015          <table> 
    1013             <tr
     1016            <tr class="repo_boxes"
    10141017              <td> 
    10151018                <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> 
    10171020              </td> 
    10181021              <td> 
    10191022                <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> 
    10211024              </td> 
    10221025              <td> 
    10231026                <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> 
    10251028              </td> 
    10261029              <td> 
    10271030                <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> 
    10291032              </td> 
    10301033            </tr> 
  • freepbx/trunk/amp_conf/htdocs/admin/views/header.php

    r12445 r12479  
    2828$html .= '<link href="' . framework_css().$version_tag . '" rel="stylesheet" type="text/css">'; 
    2929 
    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 
     31if (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
    3634// Insert a custom CSS sheet if specified (this can change what is in the main CSS) 
    3735if ($amp_conf['BRAND_CSS_CUSTOM']) { 
     
    3937      . $version_tag . '" rel="stylesheet" type="text/css">'; 
    4038} 
     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     
    4145$html .= '</head>'; 
    4246 
    4347//open body 
    44 $html .= '<body' 
    45     . (isset($_COOKIE['lang']) && $_COOKIE['lang'] == "he_IL" ? ' dir="rtl"' : '') 
    46     . '>'; 
     48$html .= '<body>'; 
    4749 
    4850$html .= '<div id="page">';//open page 
  • freepbx/trunk/amp_conf/htdocs/admin/views/menu.php

    r12471 r12479  
    55 
    66if (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*/ 
    189 
    1910  foreach ($fpbx_menu as $mod => $deets) { 
     
    8273 
    8374if ( isset($_SESSION['AMP_user']) && ($authtype != 'none')) { 
    84   $out .= '<button id="user_logout"' 
     75  $out .= '<a id="user_logout" href="#"' 
    8576      . ' class="button-right ui-widget-content ui-state-default" title="logout">' 
    8677      . _('Logout: ') . (isset($_SESSION['AMP_user']->username) ? $_SESSION['AMP_user']->username : 'ERROR') 
    87       . '</button>'; 
     78      . '</a>'; 
    8879} 
    8980 
    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>'; 
    9283 
    93 $out .= '</div>';//'<div style="width:100%;height:0px;clear:both"></div>'; 
     84$out .= '</div>'; 
    9485$out .= '</div>';//header 
    9586$out .= '<div id="page_body">'; 
  • modules/branches/2.10/backup/bin/backup.php

    r12438 r12479  
    5151      backup_log(_('Creating backup...')); 
    5252      $b->create_backup_file(); 
    53     } else { 
     53    } else {//run backup remotly 
    5454      $opts = array( 
    5555          'bu'  => $bu, 
     
    8787    }  
    8888     
    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    } 
    91101       
    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 
    98103    backup_log('backup id ' . $vars['id'] . ' not found!'); 
    99104  } 
  • modules/branches/2.10/ivr/install.php

    r12290 r12479  
    77if($amp_conf["AMPDBENGINE"] == "sqlite3")  { 
    88  sql("CREATE TABLE IF NOT EXISTS `ivr_details` ( 
    9     `id` int(11) NOT NULL PRIMARY KEYAUTOINCREMENT, 
     9    `id` int(11) NOT NULL PRIMARY KEY AUTOINCREMENT, 
    1010    `name` varchar(50) default NULL, 
    1111    `description` varchar(150) default NULL, 
  • modules/branches/2.10/ivr/views/entries.php

    r12291 r12479  
    6262$ret = ''; 
    6363$ret .= $table->generate(); 
    64 $ret .= '<img class="IVREntries" src="modules/ivr/assets/images/add.png" style="cursor:pointer" title="' . _('Add Entrie')  
     64$ret .= '<img class="IVREntries" src="modules/ivr/assets/images/add.png" style="cursor:pointer" title="' . _('Add Entry')  
    6565    . '" id="add_entrie">'; 
    6666