Pages: [1] :: one page |
|
Author |
Thread Statistics | Show CCP posts - 1 post(s) |
Zorth Athall
Gallente Memphis Dynamic
|
Posted - 2009.10.25 13:01:00 -
[1]
Hello, This is/ might sound weird as I am not an uber techie - basically I want to have a page on my corp website where members can insert the quantity of Ore and get a total payout that the corp will pay them.
The prices are fixed/ adjusted by the directors as neccessary.
Basically they enter the values, the html sheet totals it up based on current corp prices and tells them what it is worth.
If anyone has any this like this and could help me it that would be awsome - please contact me ingame or here. ----------------------- TREAD ALLIANCE ACCEPTING CORPORATIONS Contact me ingame for more information
|
Kupus 01
|
Posted - 2009.10.25 14:26:00 -
[2]
has to be pure html or is php ok?
|
Zorth Athall
Gallente Memphis Dynamic
|
Posted - 2009.10.25 15:05:00 -
[3]
I suppose PHP would be fine - look i'll be straight up I dont really know - all i know is I want to set the price of the ore - they then input their quantities and it will tell them the total I will pay them/ I have to pay them.
i will then host this in a similar way to a killboard.
www.mywebsite.com/Ore Price - for example.
Maybe its not as easy as I thought - hell it can be easy i cant do it. lol ----------------------- TREAD ALLIANCE ACCEPTING CORPORATIONS Contact me ingame for more information
|
Marcus D'Eriellius
Gallente Honour Bound Eternal Rapture
|
Posted - 2009.10.25 16:13:00 -
[4]
The zero effort way would just be to have a Google docs spreadsheet and allow your corp mates read/write access. You could even then get it to pull the mineral prices automatically from eve-central, perhaps have mean Jita buy price minus 20% or similar.
|
Msgerbs
Gallente Imperial Assualt Guild Raikiri Assasins
|
Posted - 2009.10.25 16:34:00 -
[5]
I'm not sure it's possible with pure HTML, although java might be able to do this within HTML. The easiest way would be if your server allows PHP and a database of some sort, you could have a corp director login to set prices, and such things as that. PS: This is not part of my signature
------ C&P wannabe
WTB 5 minutes |
Freakje
Caldari
|
Posted - 2009.10.25 17:58:00 -
[6]
Edited by: Freakje on 25/10/2009 17:58:53 Try this; Mining Optimizer and then go to Ore Calculator. Enter in the amount of ores, then hit submit and it will calculate the prices. Market prices are those fetched automaticly from EVE-Central. Corp prices are those of our corporation mineral prices. The website and this is a tool I worked on half a year ago. Not many people responded so I stopped working at this webtool, but maybe you can use it now. I was supposed to make it like a killboard/mineboard. Where people could register and join there own corp on the website. Then see what they have mined, how much its worth and keep a nice overview of what they have done.
Freakje ;)
|
mxzf
Minmatar Sebiestor tribe
|
Posted - 2009.10.25 18:16:00 -
[7]
I've got something similar in PHP that I've been working on off and on, it's very doable, the one I'm working on just pulls the ore values from a text file that I can edit since the server I was going to toss it on a server that I don't think has SQL (it's just a bit of webspace I got from the school) and I don't want to publicly use my local servers. If I ever get around to finishing it up, I'll try to remember to drop you a message and see if you still want something like this.
|
Haguu
Caldari School of Applied Knowledge
|
Posted - 2009.10.25 20:29:00 -
[8]
It is trivial with Javascript (Java is overkill) and dHTML (dynamic HTML).
The tricky bit is how do directors update the prices. And will they/can they? Would they be willing to, horrors, manually update some HTML and upload it to the web site? Or do you have to write a web page to provide them a login, User Interface, update a MYSQL database, ... The former is a few minutes to set up, no database to read from or store to; a single HTML page, hostable anywhere.
Dominion changes mean you probably should make it compatible with the upcoming IGB.
A Google Docs Spreadsheet is a very reasonable way to go
|
Dr BattleSmith
PAX Interstellar Services
|
Posted - 2009.10.26 07:01:00 -
[9]
Originally by: Zorth Athall Hello, This is/ might sound weird as I am not an uber techie - basically I want to have a page on my corp website where members can insert the quantity of Ore and get a total payout that the corp will pay them.
The prices are fixed/ adjusted by the directors as neccessary.
Basically they enter the values, the html sheet totals it up based on current corp prices and tells them what it is worth.
If anyone has any this like this and could help me it that would be awsome - please contact me ingame or here.
MineManager http://www.eveonline.com/ingameboard.asp?a=topic&threadID=1193523
|
Zorth Athall
Gallente Memphis Dynamic
|
Posted - 2009.10.26 15:09:00 -
[10]
Thanks guys some great ideas here - however I kind of found what I am looking for here
- http://snipplr.com/view/3588/ore-price-calculator-using-evecentrals-mineral-index-for-eveonline/
My only issues are now i am trying to edit it - firstly I dont want the prices from Eve central - i am after prices i set into the script.
Secondly on the left - rather than have price - I would like the variable to be what the quantity of raw ore is - entered by the holder - the far right will then give the fixed price I have set (yes I'm happy to edit the hosted script) and the far right will give the total isk value of that ore (at corp price)
Finally if theres a way I would like a total isk box at the bottom right - telling the members exactly howmuch they will get paid when they sell to corp.
Once the basic is completed I'm sure it wouldnt be hard to create a duplicate script for salvage or other items - just a change of item name and price.
If anyone has any ideas or suggestions - please feel free to hit me ingame - Im sure some help with this 1 page script could be finacially viable for someone - ISK of course.
Thanks guys ----------------------- TREAD ALLIANCE ACCEPTING CORPORATIONS Contact me ingame for more information
|
|
|
CCP Zymurgist
Gallente
|
Posted - 2009.10.26 20:52:00 -
[11]
Moved to EVE Technology Lab.
Zymurgist Community Representative CCP Hf, EVE Online Contact us |
|
Zorth Athall
Gallente Memphis Dynamic
|
Posted - 2009.10.26 23:25:00 -
[12]
Ok so now I learn I really dont have a clue apprently this is Javascript???? To make this alittle easier and so people kind of get the idea of what I am aim at - please find below - its very simple - and doesnt actually work as it doesnt YET show the Isk P/U of unrefined ore values - nor does it calculate any quantity input - but for someone who has never even looked at a bit ok code - I guess its a start - if someone could assist - please let me know.
--------
<html> <head> <title>ORE</title>
<style> body { background-color: #dddddd; font-family: Verdana;} .TblHeader {font-size:20px; font-weight:bold; text-align:center;} .TblHeader2 {font-size:14px; text-align:center; font-weight:bold;} .TblData {font-size:14px; padding:2px;} </style>
<script Language="JavaScript"> var Ores = new Array('Veldspar', 'Pyerite', 'Mexallon', 'Isogen', 'Nocxium', 'Zydrine', 'Megacyte', 'Morphite');
var Ores = new Array(); Ores['Veldspar'] = new Array(); Ores['Veldspar']['PricePU'] = 2.89;
function UpdateList () { for (var i in Ores) { var Ores = Ores[i]; eval ("var "+Material+"Price = parseFloat(document.getElementById(\""+Material+"Price\").value);"); }
for (var i in Materials) { var Ores = Ores[i]; var Price = 555;
for (var j in Ores['PricePU']) { eval ("var PricePerUnit = "+j+"Price;"); if (MaterialPrice > 0 && Price >= 0) { Price += PricePerUnit * Ores['PricePU'][j]; } else { Price = -1; break; } }
if (Price >= 0) { var PricePerUnit = Math.round(Price / Asteroid['Batchsize']*100)/100; var PriceTotal = Math.round(((Ore / Ore['PricePU']); if ((PricePerUnit*100)%10 == 0) { PricePerUnit = String.concat(PricePerUnit+"0"); } if ((PricePerM3*100)%10 == 0) { PricePerM3 = String.concat(PricePerM3+"0"); } } else { PricePerUnit = 0.00; PricePerM3 = 0.00; }
document.getElementById(i+"_Unit").innerHTML = PricePerUnit; document.getElementById(i+"_m3").innerHTML = PricePerM3; } } </script> </head>
<body onLoad="javascript:UpdateList();">
<table border="0" cellpadding="0" cellspacing="0" width="1000"> <tr> <td width="45%" valign="top"> <table border="0" cellpadding="0" cellspacing="0" width="400"> <tr> <td class="TblHeader" colspan="2">ORE TYPE</td> </tr>
<tr>
<td class="TblData">Veldspar:</td> <td class="TblData"><input class="TxtField" id="TotalIsk" onKeyUp="javascript:UpdateList();" onChange="javascript:UpdateList();"<? if (isset($result)) echo ' value="'.$result['Tritanium'].'"'; ?>></td> </tr> </script>
</table>
</td>
<td width="10%"> </td>
<td width="45%" valign="top"> <table border="0" cellpadding="0" cellspacing="0" width="400"> <tr> <td class="TblHeader" colspan="3">Price</td> </tr> <tr>
<td class="TblHeader2">Name</td> <td class="TblHeader2">ISK P/u</td> <td class="TblHeader2">ISK Total</td> </tr>
<tr> <td class="TblData">Veldspar:</td> <td class="TblData" align="right"><span id="VeldsparPrice">---</span></td>
<td class="TblData" align="right"><span id="Veldspar_Unit">---</span></td> </tr> </table> </td> </tr> </table> </body> </html> </script> </head>
<body onLoad="javascript:UpdateList();">
<table border="0" cellpadding="0" cellspacing="0" width="1000"> <tr> <td width="45%" valign="bottom"> <table border="0" cellpadding="0" cellspacing="0" width="400"> <tr> <td class="TblHeader" colspan="2">TOTAL ISK</td> </tr>
<tr>
<td class="TblData">TOTAL:</td> <td class="TblData"><input class="TxtField" id="TotalIsk" onKeyUp="javascript:UpdateList();" onChange="javascript:UpdateList();"<? if (isset($result)) echo ' value="'.$result['Tritanium'].'"'; ?>></td> </tr>
</script>
|
Dan1898
Caldari Memphis Dynamic
|
Posted - 2009.10.29 00:05:00 -
[13]
Bump for the boss - I know he's trying hard to get this sorted but he doesnt really have a clue.
|
|
|
|
Pages: [1] :: one page |
First page | Previous page | Next page | Last page |