Skip to content

Commit bdd4b0e

Browse files
committed
细节调整
1 parent ae4b2ba commit bdd4b0e

8 files changed

Lines changed: 22 additions & 20 deletions

File tree

‎img/ui/index.css‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,8 +411,10 @@ input{-moz-user-select:text;-webkit-user-select:text;user-select:text}
411411
#search-bar{height:33px;width:212px;position:absolute;top:0;right:20px;z-index:20;background:url(desk_sprite.png) no-repeat -550px -635px;display:none}
412412
#search-bar.above{background-position:-550px -600px}
413413
#pageletSearchInput{outline:none;border:0;width:170px!important;height:20px;line-height:20px;margin:6px 0 0 7px;padding:0;float:left;color:#fff;background:transparent;-moz-user-select:text;-webkit-user-select:text;user-select:text}
414-
#pageletSearchInput::-webkit-input-placeholder,
415-
#pageletSearchInput::-moz-placeholder{color:#ccc}
414+
#pageletSearchInput::-webkit-input-placeholder{color:#ccc}/* WebKit browsers */
415+
#pageletSearchInput:-moz-placeholder{color:#ccc}/* Mozilla Firefox 4 to 18 */
416+
#pageletSearchInput::-moz-placeholder{color:#ccc}/* Mozilla Firefox 19+ */
417+
#pageletSearchInput:-ms-input-placeholder{color:#ccc}/* Internet Explorer 10+ */
416418
#pageletSearchButton{border:0;float:right;width:20px;height:20px;cursor:pointer;margin:6px 8px 0 0;padding:0;background:url(desk_sprite.png) no-repeat -200px -160px}
417419
#pageletSearchButton:hover{background-position:-220px -160px}
418420
#search-suggest{width:212px;position:absolute;top:33px;right:20px;z-index:20;display:none}

‎inc/functions.php‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -550,17 +550,17 @@ function get_path_this($path){
550550
return substr($path,strrpos($path,'/')+1);
551551
}
552552
function file_download($file, $filename){
553-
if (file_exists($file)) {
553+
if(file_exists($file)){
554554
header("Cache-Control: public");
555555
header("Content-Type: application/octet-stream");
556556
header("Content-Disposition: attachment;filename=".$filename);
557557
header("Accept-Ranges: bytes");
558558
$size = filesize($file);
559559
//如果有$_SERVER['HTTP_RANGE']参数 断点续传
560-
if (isset ($_SERVER['HTTP_RANGE'])) {
560+
if(isset($_SERVER['HTTP_RANGE'])){
561561
list ($a, $range) = explode("=", $_SERVER['HTTP_RANGE']);
562562
str_replace($range, "-", $range);
563-
$size2 = $size -1; //文件总字节数
563+
$size2 = $size - 1; //文件总字节数
564564
$new_length = $size2 - $range; //获取下次下载的长度
565565
header("HTTP/1.1 206 Partial Content");
566566
header("Content-Length: $new_length"); //输入总长
@@ -572,14 +572,14 @@ function file_download($file, $filename){
572572
}
573573
$fp = fopen($file, "rb");
574574
fseek($fp, $range);
575-
while (!feof($fp)) {
575+
while(!feof($fp)){
576576
set_time_limit(0);
577-
print (fread($fp, 1024 * 8)); //输出文件
577+
print(fread($fp, 1024 * 8)); //输出文件
578578
flush();
579579
ob_flush();
580580
}
581581
fclose($fp);
582-
exit ();
582+
exit();
583583
}
584584
}
585585

‎js/hros.widget.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ HROS.widget = (function(){
5959
});
6060
}
6161
},
62-
create : function(appid, type){
62+
create : function(appid, type, realappid){
6363
var type = type == null ? 'widget' : type;
6464
//判断窗口是否已打开
6565
var iswidgetopen = false;
@@ -119,7 +119,7 @@ HROS.widget = (function(){
119119
HROS.window.createTemp({
120120
appid : 'hoorayos-yysc',
121121
title : '应用市场',
122-
url : 'sysapp/appmarket/index.php?id=' + $('#d_' + appid).attr('realappid'),
122+
url : 'sysapp/appmarket/index.php?id=' + (realappid == null ? $('#d_' + appid).attr('realappid') : realappid),
123123
width : 800,
124124
height : 484,
125125
isflash : false,

‎js/hros.window.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ HROS.window = (function(){
134134
** 系统窗口:HROS.window.create(appid, [type]);
135135
** 示例:HROS.window.create(12);
136136
*/
137-
create : function(appid, type){
137+
create : function(appid, type, realappid){
138138
var type = type == null ? 'window' : type;
139139
//判断窗口是否已打开
140140
var iswindowopen = false;
@@ -288,7 +288,7 @@ HROS.window = (function(){
288288
HROS.window.createTemp({
289289
appid : 'hoorayos-yysc',
290290
title : '应用市场',
291-
url : 'sysapp/appmarket/index.php?id=' + $('#d_' + appid).attr('realappid'),
291+
url : 'sysapp/appmarket/index.php?id=' + (realappid == null ? $('#d_' + appid).attr('realappid') : realappid),
292292
width : 800,
293293
height : 484,
294294
isflash : false,

‎sysapp/appmanage/detail.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@
119119
<div class="input-label">
120120
<label class="label-text">应用类型:</label>
121121
<div class="label-box form-inline control-group">
122-
<label class="radio" style="margin-right:10px"><input type="radio" name="val_type" value="window" <?php if($app['type'] == 'window'){echo 'checked';} ?>>窗口</label>
123-
<label class="radio"><input type="radio" name="val_type" value="widget" <?php if($app['type'] == 'widget'){echo 'checked';} ?>>挂件</label>
122+
<label class="radio" style="margin-right:10px"><input type="radio" name="val_type" value="window" <?php if($app['type'] == 'window'){echo 'checked';} ?> <?php if(isset($_GET['appid'])){echo 'disabled';} ?>>窗口</label>
123+
<label class="radio"><input type="radio" name="val_type" value="widget" <?php if($app['type'] == 'widget'){echo 'checked';} ?> <?php if(isset($_GET['appid'])){echo 'disabled';} ?>>挂件</label>
124124
</div>
125125
</div>
126126
<div class="input-label input-label-isresize" <?php if($app['type'] == 'widget'){echo 'style="display:none"';} ?>>

‎sysapp/appmarket/index.php‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,9 @@
218218
}
219219
}).on('click', '.btn-run-s', function(){
220220
if($(this).attr('app_type') == 'window'){
221-
window.parent.HROS.window.create($(this).attr('app_id'));
221+
window.parent.HROS.window.create($(this).attr('app_id'), 'window', $(this).attr('real_app_id'));
222222
}else{
223-
window.parent.HROS.widget.create($(this).attr('app_id'));
223+
window.parent.HROS.widget.create($(this).attr('app_id'), 'widget', $(this).attr('real_app_id'));
224224
}
225225
});
226226
$('.commend-day').on('click', '.btn-add', function(){
@@ -242,9 +242,9 @@
242242
}
243243
}).on('click', '.btn-run', function(){
244244
if($(this).attr('app_type') == 'window'){
245-
window.parent.HROS.window.create($(this).attr('app_id'));
245+
window.parent.HROS.window.create($(this).attr('app_id'), 'window', $(this).attr('real_app_id'));
246246
}else{
247-
window.parent.HROS.widget.create($(this).attr('app_id'));
247+
window.parent.HROS.widget.create($(this).attr('app_id'), 'widget', $(this).attr('real_app_id'));
248248
}
249249
});
250250
});

‎sysapp/permission/detail.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
redirect('../error.php?code='.$errorcode['noAdmin']);
1111
}
1212
//验证是否有权限
13-
else if(!checkPermissions(1)){
13+
else if(!checkPermissions(4)){
1414
redirect('../error.php?code='.$errorcode['noPermissions']);
1515
}
1616

‎sysapp/permission/index.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
redirect('../error.php?code='.$errorcode['noAdmin']);
1111
}
1212
//验证是否有权限
13-
else if(!checkPermissions(1)){
13+
else if(!checkPermissions(4)){
1414
redirect('../error.php?code='.$errorcode['noPermissions']);
1515
}
1616
?>

0 commit comments

Comments
 (0)