Control Web Panel
Developers => New Modules => Topic started by: pedromidiasf on April 05, 2015, 02:42:30 PM
-
This module lets you add favorites to the top of your page
(http://i.imgur.com/NAUqQh8.png)
Add these lines to the bottom of: /usr/local/cwpsrv/htdocs/resources/admin/include/3rdparty.php
<!-- Fast access -->
<style>
.fast_access .items .op{
display:inline-block;
padding:5px;
padding-bottom: 0px;
width:100%;
}
.fast_access .items {
position:absolute;
background:#FFF;
padding-bottom: 5px;
display:none;
}
</style>
<li class="inactive fast_access">
<a href="#" class="bt">
<span class="icon16 icomoon-icon-star"></span> <span class="txt">Favorites</span>
<span class="hasDrop icon16 icomoon-icon-arrow-down-2"></span>
</a>
<div class="items">
<a class="op" href="index.php?module=postfix_queue">Mail Queue</a>
<a class="op" href="http://www.google.pt" target="_blank">Google</a>
</div>
</li>
<script>
$(".fast_access").appendTo(".navbar .nav:first");
$('.fast_access .bt').click(function(){
if($('.fast_access .items').is(':visible'))
$('.fast_access .items').hide();
else
$('.fast_access .items').show();
});
</script>
<!-- //Fast access -->
The red lines above are the options you can add to that dropdown menu, if you want to add more, just follow this rules:
<a class="op" href=" [URL goes here - with no spaces between quotes] "> [Text goes here] </a>
Add as much as you want :)
Tip: if you want every time to open a specific option on a new page, just add: target="_blank" before the >text option</a>
<a class="op" href="http://www.google.pt" target="_blank">Google</a>
-
Olá,
Como seria para a tela de cliente?
Att..
-
Olá,
Como seria para a tela de cliente?
Att..
Nunca programei para "cliente", apesar de existir a pasta tal como na pasta admin não sei se é possivel acrescentar, mas se for, deve funcionar da mesma forma uma vez q a base é a mesma.