Jump to content

Consolidated 3.6.1 Admin Screen


Recommended Posts

We really liked Matts new admin screen but we wanted to consolidate it a little, if you would like a copy of the hompage.tpl, PM me. If too many people want it, I will just toss it on a ftp server.

 

I am sure alot of you can do alot better than we did here, but we have all the same default information, just consolidated a little more.

Its really easy to design the admin screen anyway you see fit.

 

whmcs_admin2.jpg

Link to comment
Share on other sites

it is a bit too wide i think ,

i am working on a someting where you can rearrange the tables (drag and drop/hide and show) anyway you like .

here a first look at it the start

 

http://www.hosting777.com/whmcs/

 

i hope i can finish in the next 5 years :)

 

Ya, it might be a little wide for some, but we are using a fairly high resolution and it fits on our screens without having to scroll right/left, so it works for us.

What we really wanted was collapsable tables, but with only 10mins of free time, we couldn't get them to functions correctly.

 

If someone wants to try to get the collapsable tables to work, here was the basic code exaple we were trying to use:

 

<html>

<head>

<title> New Document </title>

<script language="javascript">

function init()

{

var cookie = getCookie('collapse_obj');

if(cookie)

{

var values = cookie.split(',');

 

for(var i = 0; i < values.length; i++)

{

var itm = getItem(values);

 

if(itm)

itm.style.display = 'none';

}

}

}

 

function makeCookie(name, value)

{

var cookie = name + '=' + escape(value) + ';';

document.cookie = cookie;

}

 

function getCookie(name)

{

if(document.cookie == '')

return false;

 

var firstPos;

var lastPos;

var cookie = document.cookie;

 

firstPos = cookie.indexOf(name);

 

if(firstPos != -1)

{

firstPos += name.length + 1;

lastPos = cookie.indexOf(';', firstPos);

 

if(lastPos == -1)

lastPos = cookie.length;

 

return unescape(cookie.substring(firstPos, lastPos));

}

 

else

return false;

}

 

function getItem(id)

{

var itm = false;

if(document.getElementById)

itm = document.getElementById(id);

else if(document.all)

itm = document.all[id];

else if(document.layers)

itm = document.layers[id];

 

return itm;

}

 

function toggleItem(id)

{

itm = getItem(id);

 

if(!itm)

return false;

 

if(itm.style.display == 'none')

itm.style.display = '';

else

itm.style.display = 'none';

 

////////////////////

 

cookie = getCookie('collapse_obj');

values = new Array();

newval = new Array();

add = 1;

 

if(cookie)

{

values = cookie.split(',');

 

for(var i = 0; i < values.length; i++)

{

if(values == id)

add = 0;

else

newval[newval.length] = values;

}

}

 

if(add)

newval[newval.length] = id;

 

makeCookie('collapse_obj', newval.join(','));

 

return false;

}

</script>

</head>

<body onload="init()">

 

<table width="400">

<tbody>

<tr><td style="background-color: #CCC"><a href="#" onclick="toggleItem('myTbody1')">Toggle 1</a></td></tr>

</tbody>

 

<tbody id="myTbody1">

<tr><td>Test row1</td></tr>

<tr><td>Test row2</td></tr>

<tr><td>Test row3</td></tr>

<tr><td>Test row4</td></tr>

<tr><td>Test row5</td></tr>

</tbody>

</table>

 

<table width="400">

<tbody>

<tr><td style="background-color: #CCC"><a href="#" onclick="toggleItem('myTbody2')">Toggle 2</a></td></tr>

</tbody>

 

<tbody id="myTbody2">

<tr><td>Test row1</td></tr>

<tr><td>Test row2</td></tr>

<tr><td>Test row3</td></tr>

<tr><td>Test row4</td></tr>

<tr><td>Test row5</td></tr>

</tbody>

</table>

 

<table width="400">

<tbody>

<tr><td style="background-color: #CCC"><a href="#" onclick="toggleItem('myTbody3')">Toggle 3</a></td></tr>

</tbody>

 

<tbody id="myTbody3">

<tr><td>Test row1</td></tr>

<tr><td>Test row2</td></tr>

<tr><td>Test row3</td></tr>

<tr><td>Test row4</td></tr>

<tr><td>Test row5</td></tr>

</tbody>

</table>

 

</body>

</html>

Link to comment
Share on other sites

What we really wanted was collapsable tables, but with only 10mins of free time, we couldn't get them to functions correctly.

Yes, this is what Matt should do, or even make each section drag 'n drop like iGoogle. Though I appreciate all that has gone in to 3.6.1, I don't see the stock admin homepage as a plus.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated