From 7ac25251064461f7f7a14ab55fffe0cf00b61078 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Wed, 30 May 2012 14:04:22 +0200 Subject: [PATCH] Adding new icons, improving UI when building a LP --- main/css/base.css | 62 ++++++++++++++++++------------ main/img/icons/64/settings.png | Bin 0 -> 5272 bytes main/img/icons/64/tools.png | Bin 0 -> 4758 bytes main/img/icons/64/view.png | Bin 0 -> 6829 bytes main/inc/ajax/lp.ajax.php | 2 +- main/inc/lib/document.lib.php | 21 +++++----- main/newscorm/learnpath.class.php | 48 +++++++++++++---------- main/newscorm/lp_add_item.php | 32 +++++++-------- main/newscorm/lp_admin_view.php | 6 +-- main/newscorm/lp_build.php | 47 ++++++++++++++++------ main/newscorm/lp_edit.php | 22 +++++------ 11 files changed, 140 insertions(+), 100 deletions(-) create mode 100644 main/img/icons/64/settings.png create mode 100644 main/img/icons/64/tools.png create mode 100644 main/img/icons/64/view.png diff --git a/main/css/base.css b/main/css/base.css index eea9059505..25a8db1603 100644 --- a/main/css/base.css +++ b/main/css/base.css @@ -153,6 +153,15 @@ form .formw input { padding: 19px; } +.well_login { + margin: 0 auto; + width: 200px; +} + +.well_login button { + margin-left: 0px; +} + #progress_bar img { height:26px; } @@ -1981,13 +1990,18 @@ input.maininput:focus { /* LP tool*/ + +#lp_overview .thumbnail { + text-align: center; +} + .lp_resource { padding:5px 10px; list-style-type: none; margin: 0; padding: 0; float:left; - width:70%; + width:50%; } .lp_resource_element, .lp_resource_element_no_link { @@ -2004,18 +2018,8 @@ input.maininput:focus { list-style: none outside none; } -.lp_resource_element_new { - background-image:-moz-linear-gradient(top,#fefefe,#eee); - background-image:-webkit-gradient(linear,left top,left bottom,color-stop(0,#fdfdfd),color-stop(1,#eee)); - border: 1px solid #CCCCCC; - color: #444444; - cursor: pointer; - font-weight: bold; - text-decoration: none; - text-shadow: 0 1px 1px #F6F6F6; - margin:5px; - padding:5px; - list-style: none outside none; +.lp_resource_element_new a { + font-size: 14px; } .doc_resource { @@ -2036,9 +2040,6 @@ table.lp_build td.tree { min-height:380px; } -#logo { -} - div.system_announcement { background-color: #EEEEEE; } @@ -2066,7 +2067,6 @@ div.system_announcement { width: 98%; } - div.admin_section { min-height: 260px; } @@ -2737,6 +2737,8 @@ form .formw .freeze { color:#999; } + + /* jsPlumb */ .skill_root { @@ -3073,7 +3075,7 @@ a:active{ margin-right: 4px; } -.thumbnail .caption { +#online_grid_container .thumbnail .caption { text-align:center; } @@ -3847,13 +3849,16 @@ footer { font-weight: normal; } +.ui-state-highlight_lp { + border: 1px solid #FEAA18; + background: #FFB738; + color: #363636; + height:20px; + width: 70%; +} + -.bottom_actions { - /*background:#efefef; - border:1px solid #ccc; - padding:10px; - vertical-align:middle; - */ +.bottom_actions { display: block; width: 100%; } @@ -3864,4 +3869,13 @@ footer { bottom: 0; left: 0px; margin-bottom: 0px; +} + +.doc_folder { + margin-right:5px; + margin-top:5px; +} + +.doc_resource{ + margin: 5px; } \ No newline at end of file diff --git a/main/img/icons/64/settings.png b/main/img/icons/64/settings.png new file mode 100644 index 0000000000000000000000000000000000000000..3be003e604844934c57feec73b682167ebc33d55 GIT binary patch literal 5272 zcmV;J6ld#+P)b`K{m zI;}Z$_~g3vYrQS4%^R|^vSCTKV0>Z(gTwuxf`EkuMOeIeG41GV&+-SfFRoj={>Unu9g=nYJ@)0KgRp&CTaGa0SBo3r!me3Ja07ARCNx`29Y3d>&YmQn0AFnAX+T+171b zbG+u@k*>M=inX0Pccu%H@KIiFLCT7|RtkgwgaDianHiZxQB+}UWcVxV)>hRXI&}D& z5a@Kj*tO@CAMf71`_`+yylv}?uK{GsAO7%LOgP4nnw$zsDL7*o9vOhel8W2!xPysA zd~q&fr!qmtuOvy%uUfNKq?Ca3a2jJw2V)G&mM)`<7L^!5$?+Yp@5s4Uds6~<_0?BC zPYAvbs-NBU+OFHK)<6V8S6^Qr2%(@fTohG--{(W+=a*2OvDL4?zCC45iev1px84#6 z$ol1X-bq9;I(RvP!4N{BAQUBpK)?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<*dhPu0|m5~DB^%U6pN?=5xZ<@fzmq^9VE-~(3IoR^eiJX zu$}^QdQN~^t%0m*V{ljKm@55PVmq%i3F8M5gN%+P4mAG4HY%HCv7bHBIT1sSIJp$G;1hz(w_gI?kW6PuFdV!gU#%YSyK1b+qO|G=RhCZbtDke=&1^@yt<)ps3T zQPW!jBdANEa?=k!Q6#1=k%=R}-ashvnaniu(Ik=5c+!?(yKYuF>J&5V=(BYtC(4fZ zdNRg-XY5Q3_y;98Qr6tX@xe$!`Tz8{Olo@H?{-cp($%QTb-0wQUf!#?#zgat`1%~Md{?n3uYg1#rBb5!sXwLx5e8xevf4VnMGQB%1!Y(qeMe*@Yw z!MJDPa3h6YpK6sc)V~mQEKzr(41@Uh3PD-z7F{R}q(*eHxUVL1Ri87m9+**!FxF;M zfj3N4%iA=1?Ie)|Our0hjhXZ!@yE<+@$P;oS49~z?KJ?*Qgo!ycN?HjE^5*b2{A@$ ztam~=cWKbuAYpUQrY#-YBS!Svi4S>iXD7!f^b*}|N>z@*VqI@(Bt61meKmb(Zo!nJ zQu56y99gcID~7SuUIoCf@oyyh%tlKaQ926fNnrY0vi7!Rc2;yAcRhuGT~FD;*LAYs z)5pc(_4DX*)dQ~AA@nB37YJRV-s4g7ZoT9VBV^XCd<< zxN9J=2h&bfIfBrRV$wFAiU3$OEd-5UWcbxCR9VNh$B literal 0 HcmV?d00001 diff --git a/main/img/icons/64/view.png b/main/img/icons/64/view.png new file mode 100644 index 0000000000000000000000000000000000000000..92635c96e0b7972444b901033e810e650aa5eb97 GIT binary patch literal 6829 zcmY*;dpuOz|NfrYX2xY>x|)g1pbI54DC9OXaf*_pPAQ#ica?HIF2$HJ8Wd3}moTH# zksK$34!W6P`E0anv?H~;RD%-44SH7*R@zK9{MIQ+ZijMV-3_^aR}laJ zv2zRrh>X1nD}U%s(*_v8hG_(Vr5ZT`05T1gFKlabsba1?SEwDCw{G<%-@JJwv#97d z)ey7JECPj|xHR`|K2@9WGeJ7@dEi4`Sg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8|lVhOZ6PeOYm)7G7wV%=_&Z3#|? zsKBdj0IyH)3RM2k9Xd-dhF-HbyzfXhb^US|y6`;#dW{SfJe;AxFA@1;rz50moSJTU zC*iEtZVaqXf^sTjsW%r7owe2a6w3ha{tgHL%SVEgH+qp@jzRBfj!<>!5^~H?ukm6s zlwP_A`eIQC^`BM-gcn6|M*F(k`*GLYQh$#)aM1-EL*=~v3 zcadCn$p*ZWJ^|h7%pyN~&ez@m#Gd&ldi{TU+)xHkwN#IVoYC60HAiq>z1IW07aPkO zc(pO|zf1>h3-orX>4!{CYujcmW-{5^+i3sA3@z6iB37?NKC)}8{=c**q#3iqCjU<~ bga+1*zx_=;_7QU>ZvtF@ad&>W2TuM!+LvEt literal 0 HcmV?d00001 diff --git a/main/inc/ajax/lp.ajax.php b/main/inc/ajax/lp.ajax.php index b1647638fe..7cfbd2d987 100644 --- a/main/inc/ajax/lp.ajax.php +++ b/main/inc/ajax/lp.ajax.php @@ -27,7 +27,7 @@ switch ($action) { $sections = explode('^', $new_order); $new_array = array(); $i = 0; - foreach($sections as $items) { + foreach ($sections as $items) { list($id, $parent_id) = explode('|', $items); $new_array[$i]['id'] = intval($id); $new_array[$i]['parent_id'] = intval($parent_id); diff --git a/main/inc/lib/document.lib.php b/main/inc/lib/document.lib.php index dbe2f8784c..d075373e5b 100755 --- a/main/inc/lib/document.lib.php +++ b/main/inc/lib/document.lib.php @@ -2498,10 +2498,10 @@ class DocumentManager { "ORDER BY docs.title ASC"; $res_doc = Database::query($sql_doc); $resources = Database::store_result($res_doc, 'ASSOC'); - $return = ''; + $resources_sorted = array(); - + $return = ''; if ($lp_id) { $return .= '
'; $return .= Display::return_icon('new_doc.gif', '', array(), ICON_SIZE_SMALL); @@ -2565,11 +2565,10 @@ class DocumentManager { $new_array[$label] = array('id' => 0, 'files' => $resources_sorted); - $write_result = self::write_resources_tree($course_info, $session_id, $new_array, 0, $lp_id, $target, $add_move_button); + $write_result = self::write_resources_tree($course_info, $session_id, $new_array, 0, $lp_id, $target, $add_move_button, true); $return .= $write_result ; - - $return = Display::div($return, array('class'=>'lp_resource')); + $img_path = api_get_path(WEB_IMG_PATH); if ($lp_id == false) { @@ -2593,9 +2592,11 @@ class DocumentManager { function testResources(id, img) { if (document.getElementById(id).style.display=='block'){ document.getElementById(id).style.display='none'; + var id = id.split('_')[1]; document.getElementById('img_'+id).src='".$img_path."nolines_plus.gif'; } else { document.getElementById(id).style.display='block'; + var id = id.split('_')[1]; document.getElementById('img_'+id).src='".$img_path."nolines_minus.gif'; } } @@ -2615,7 +2616,7 @@ class DocumentManager { * @param integer Enables the tree display by shifting the new elements a certain distance to the right * @return string The HTML list */ - public function write_resources_tree($course_info, $session_id, $resources_sorted, $num = 0, $lp_id = false, $target = '', $add_move_button = false) { + public function write_resources_tree($course_info, $session_id, $resources_sorted, $num = 0, $lp_id = false, $target = '', $add_move_button = false, $first = false) { require_once api_get_path(LIBRARY_PATH).'fileDisplay.lib.php'; $img_path = api_get_path(WEB_IMG_PATH); @@ -2623,6 +2624,7 @@ class DocumentManager { $web_code_path = api_get_path(WEB_CODE_PATH); $return = ''; + if (count($resources_sorted) > 0) { foreach ($resources_sorted as $key => $resource) { $title = isset($resource['title']) ? $resource['title'] : null; @@ -2663,8 +2665,9 @@ class DocumentManager { } $return .= '
    '; + - $return .= '
    '; + $return .= '
  • '; if ($lp_id) { $return .= ''; } else { @@ -2673,7 +2676,7 @@ class DocumentManager { $return .= ' '; $return .= ''.$title.''; - $return .= '
  • + $return .= '