All pastes #884746 Raw Edit

Anonymous

public text v1 · immutable
#884746 ·published 2008-01-30 15:58 UTC
rendered paste body
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Rechner</title>
<style type="text/css" >
	body {
		color: #000000;
		font-family: Arial, Helvetica, sans-serif;
		font-size: 12px;
		margin: 0;
	}
	#container {
	   margin: 0 auto;
	   width: 600px;
	   padding-top: 50px;
	}
    .input {
	   border: none;
	   cursor: default;
	   font-size: 12px;
    }
    .input_button {
       height: 20px;
	   border: none;
	   background: #8fb6cd;
	    cursor: pointer;
    }
    td {
        width: 200px;
    }
    
    .input_button:hover {

	   background: #cde6f6;
	   cursor: pointer;
    }
    .input_klein {
        width: 50px;
        height: 15px;
    }
    .total {
        border-top: 1px solid;
        border-bottom: 1px solid;
    }
</style>
<script type="text/javascript">

var MIETE = function() { 
    if (document.getElementById("miete").value != "") {  
        if (isNaN(parseFloat(document.getElementById("miete").value))) {
            alert ("error");  
        } 
    }   
	buero_berechnen("1", 130.00, 35.00);
	buero_berechnen("2", 150.00, 35.00);
	buero_berechnen("3", 170.00, 35.00);
	buero_berechnen("4", 190.00, 35.00);
	
    zwischentotal("1", 1800.00, 2400.00, 1800.00);
    zwischentotal("2", 1800.00, 2400.00, 1800.00);
    zwischentotal("3", 1800.00, 2400.00, 1800.00);
    zwischentotal("4", 1800.00, 2400.00, 1800.00);
    
    totaeler(); 
}
var TELAN = function() {
	telefonanschluesse("1", 25.00); 
	telefonanschluesse("2", 25.00);    
	telefonanschluesse("3", 25.00);    
	telefonanschluesse("4", 25.00);    
	zwischentotaeler();
	totaeler(); 
}
var TELAP = function() {
	telefonapparate("1", 10.90); 
	telefonapparate("2", 10.90);    
	telefonapparate("3", 10.90);    
	telefonapparate("4", 10.90);    
	zwischentotaeler();
	totaeler(); 
}
var PARK = function() {
	park("1", 110.00); 
	park("2", 110.00);    
	park("3", 110.00);    
	park("4", 110.00);  
	zwischentotaeler();
	totaeler();    
}
var zwischentotaeler = function()
{
    for (var i = 1; i < 5; i++) {
        zwischentotal2(i);
    }
}
var totaeler = function()
{
    for (var i = 1; i < 5; i++) {
        total(i);
    }
}
var buero_berechnen = function(dst, mietep, nebenp, telapp, parkp)
{
    document.getElementById("loesung"+dst+"_buero").value = document.getElementById("miete").value * mietep;
    document.getElementById("loesung"+dst+"_neben").value = document.getElementById("miete").value * nebenp;
}
var telefonanschluesse = function(dst, telanp) 
{
    document.getElementById("loesung"+dst+"_telan").value = document.getElementById("telan").value * telanp;    

}
var telefonapparate = function(dst, telapp) 
{
    document.getElementById("loesung"+dst+"_telap").value = document.getElementById("telap").value * telapp;    

}
var park = function(dst, parkp) 
{
    document.getElementById("loesung"+dst+"_park").value = document.getElementById("park").value * parkp;    

}
var zwischentotal = function(dst, infra, sek, bera) 
{
    document.getElementById("zwischentotal"+dst+"_1").value = parseFloat(document.getElementById("loesung"+dst+"_buero").value) + parseFloat(document.getElementById("loesung"+dst+"_neben").value) + infra + sek + bera;
}
var zwischentotal2 = function(dst) 
{
    document.getElementById("zwischentotal"+dst+"_2").value = parseFloat(document.getElementById("loesung"+dst+"_telan").value) + parseFloat(document.getElementById("loesung"+dst+"_telap").value) + parseFloat(document.getElementById("loesung"+dst+"_park").value);
}
var total = function(dst)
{
    document.getElementById("total"+dst).value = parseFloat(document.getElementById("zwischentotal"+dst+"_1").value) + parseFloat(document.getElementById("zwischentotal"+dst+"_2").value);
}

</script>
</head>

<body>
<div id="container">
    <form action="test.htm" method="post" style="width: 600px;">
    	<table width="100%" border="0">
    	  <tr>		
    		<td>Gründer Zentrum Bern</td>
    		<td><input type="button" onclick="window.print()" name="Seite Drucken" value="Berechnung ausdrucken" class="input_button" /></td>
    	  </tr>
    	</table>
    	<table>
    	  <tr>
    		<td>Mietfläche (m2)</td>
    		<td><input type="text" name="miete" id="miete" onkeyup="MIETE()" class="input_klein" /></td>
    		<td>&nbsp;</td>
    	  </tr>
    	  <tr>		
    		<td>Telefonanschlüsse</td>
    		<td><input type="text" name="telefonanschluesse" id="telan" onkeyup="TELAN()" class="input_klein" /></td>
    		<td>&nbsp;</td>
    	  </tr>
    	  <tr>		
    		<td>Telefonapparate</td>
    		<td><input type="text" name="telefonapparate" id="telap" onkeyup="TELAP()" class="input_klein" /></td>
    		<td>&nbsp;</td>
    	  </tr>
    	  <tr>		
    		<td>Parkplätze</td>
    		<td><input type="text" name="parkplaetze" id="park" onkeyup="PARK()" class="input_klein" /></td>
    		<td>&nbsp;</td>
    	  </tr>
    	</table><br />
    	<table width="100%" border="0" style="border-bottom: 1px solid #000">  
    	  <tr>
    		<td><strong>1. Jahr</strong></td>
    	  </tr>
    	  <tr>
    		<td><strong>Position</strong></td>
    		<td><strong>Preis/Einheit</strong></td>
    		<td><strong>Preis Total</strong>
    		</td>
    	  </tr>
    	</table>
    	<table>
    	  <tr>
    		<td>Büro 1. Jahr</td>
    		<td>130.00</td>
    		<td><input class="input" type="text" name="loesung" id="loesung1_buero" value="" readonly /></td>
    	  </tr>
    	  <tr>
    		<td>Nebenkosten</td>
    		<td>35.00</td>
    		<td><input class="input" type="text" name="loesung2" id="loesung1_neben" value="" readonly /></td>
    	  </tr>
    	  <tr>
    		<td>Infrastruktur und Netzwerk</td>
    		<td>150.00</td>
    		<td><input class="input" type="text" name="loesung3" id="loesung1_infra" value="1800.00" readonly /></td>
    	  </tr>
    	  <tr>
    		<td>Sekretariat</td>
    		<td>200.00</td>
    		<td><input class="input" type="text" name="loesung4" id="loesung1_sek" value="2400.00" readonly /></td>
    	  </tr>
    	  <tr>
    		<td>Beratung</td>
    		<td>150.00</td>
    		<td><input class="input" type="text" name="loesung5" id="loesung1_ber" value="1800.00" readonly /></td>
    	  </tr>	  	
    	</table>
    	<table width="100%" border="0" style="border-top: 1px solid #000; border-bottom: 1px solid #000;">
    	  <tr class="total">
    	    <td><strong>Zwischentotal 1</strong></td>
    	    <td>&nbsp;</td>
    	    <td><strong><input class="input" value="" name="zwischentotal" id="zwischentotal1_1" /></strong></td>
    	  </tr>
    	</table>
    	<table width="100%" border="0">
    	  <tr>
    	    <td>Telefonanschl&uuml;sse</td>
    	    <td style="width: 127px;">25.00</td>
    	    <td><input class="input" name="telfonanschluesse" id="loesung1_telan" value="" readonly /></td>
    	  </tr>	  
    	  <tr>
    	    <td>Telefonapparate</td>
    	    <td>10.90</td>
    	    <td><input class="input" name="telfonapparate" id="loesung1_telap" value="" readonly /></td>
    	  </tr>	  
    	  <tr>
    	    <td>Parkpl&auml;tze</td>
    	    <td>110.00</td>
    	    <td><input class="input" name="parkplatz" id="loesung1_park" value="" readonly /></td>
    	  </tr>
    	</table>
    	<table width="100%" border="0" style="border-top: 1px solid #000; border-bottom: 1px solid #000;">
    	  <tr>
    	    <td><strong>Zwischentotal 2</strong></td>
    	    <td>&nbsp;</td>
    	    <td><strong><input class="input" value="" name="zwischentotal" id="zwischentotal1_2" /></strong></td>
    	  </tr>
    	</table>
    	<table width="100%" border="0" style="border-bottom: 1px solid #000;">
    	  <tr>
    	    <td><strong>Total (CHF)</strong></td>
    	    <td>&nbsp;</td>
    	    <td><strong><input class="input" value="" name="total" id="total1" /></strong></td>
    	  </tr>
    	</table>	<br />
    <!-- 2 -->	 
    	<table width="100%" border="0" style="border-bottom: 1px solid #000">  
    	  <tr>
    		<td><strong>2. Jahr</strong></td>
    	  </tr>
    	  <tr>
    		<td><strong>Position</strong></td>
    		<td><strong>Preis/Einheit</strong></td>
    		<td><strong>Preis Total</strong>
    		</td>
    	  </tr>
    	</table>
    	<table> 
    	  <tr>
    		<td>Büro 2. Jahr</td>
    		<td>150.00</td>
    		<td><input class="input" type="text" name="loesung" id="loesung2_buero" value="" readonly /></td>
    	  </tr>
    	  <tr>
    		<td>Nebenkosten</td>
    		<td>35.00</td>
    		<td><input class="input" type="text" name="loesung2" id="loesung2_neben" value="" readonly /></td>
    	  </tr>
    	  <tr>
    		<td>Infrastruktur und Netzwerk</td>
    		<td>150.00</td>
    		<td><input class="input" type="text" name="loesung3" id="loesung2_infra" value="1800.00" readonly /></td>
    	  </tr>
    	  <tr>
    		<td>Sekretariat</td>
    		<td>200.00</td>
    		<td><input class="input" type="text" name="loesung4" id="loesung2_sek" value="2400.00" readonly /></td>
    	  </tr>
    	  <tr>
    		<td>Beratung</td>
    		<td>150.00</td>
    		<td><input class="input" type="text" name="loesung5" id="loesung2_ber" value="1800.00" readonly /></td>
    	  </tr>	  	
    	</table>
    	<table width="100%" style="border-bottom: 1px solid #000; border-top: 1px solid #000">
    	  <tr>
    	    <td><strong>Zwischentotal 1</strong></td>
    	    <td>&nbsp;</td>
    	    <td><strong><input class="input" value="" name="zwischentotal" id="zwischentotal2_1" /></strong></td>
    	  </tr>
    	</table>
    	<table width="100%" border="0">
    	  <tr>
    	    <td>Telefonanschl&uuml;sse</td>
    	    <td>25.00</td>
    	    <td><input class="input" name="telfonanschluesse" id="loesung2_telan" value="" readonly /></td>
    	  </tr>	  
    	  <tr>
    	    <td>Telefonapparate</td>
    	    <td>10.90</td>
    	    <td><input class="input" name="telfonapparate" id="loesung2_telap" value="" readonly /></td>
    	  </tr>	  
    	  <tr>
    	    <td>Parkpl&auml;tze</td>
    	    <td>110.00</td>
    	    <td><input class="input" name="parkplatz" id="loesung2_park" value="" readonly /></td>
    	  </tr>
    	</table>
    	<table width="100%" border="0" style="border-bottom: 1px solid #000; border-top: 1px solid #000">
    	  <tr>
    	    <td><strong>Zwischentotal 2</strong></td>
    	    <td>&nbsp;</td>
    	    <td><strong><input class="input" value="0.00" name="zwischentotal" id="zwischentotal2_2" /></strong></td>
    	  </tr>
    	</table>
    	<table width="100%" border="0" style="border-bottom: 1px solid #000;">
    	  <tr>
    	    <td><strong>Total (CHF)</strong></td>
    	    <td>&nbsp;</td>
    	    <td><strong><input class="input" value="" name="total" id="total2" readonly /></strong></td>
    	  </tr>
    	</table>	<br />
  <!-- 3 -->	 
    	<table width="100%" border="0" style="border-bottom: 1px solid #000;">  
    	  <tr>
    		<td><strong>3. Jahr</strong></td>
    	  </tr>
    	  <tr>
    		<td><strong>Position</strong></td>
    		<td><strong>Preis/Einheit</strong></td>
    		<td><strong>Preis Total</strong>
    		</td>
    	  </tr>
    	</table>
    	<table>  
    	  <tr>
    		<td>Büro 3. Jahr</td>
    		<td>170.00</td>
    		<td><input class="input" type="text" name="loesung" id="loesung3_buero" value="" readonly /></td>
    	  </tr>
    	  <tr>
    		<td>Nebenkosten</td>
    		<td>35.00</td>
    		<td><input class="input" type="text" name="loesung2" id="loesung3_neben" value="" readonly /></td>
    	  </tr>
    	  <tr>
    		<td>Infrastruktur und Netzwerk</td>
    		<td>150.00</td>
    		<td><input class="input" type="text" name="loesung3" id="loesung3_infra" value="1800.00" readonly /></td>
    	  </tr>
    	  <tr>
    		<td>Sekretariat</td>
    		<td>200.00</td>
    		<td><input class="input" type="text" name="loesung4" id="loesung3_sek" value="2400.00" readonly /></td>
    	  </tr>
    	  <tr>
    		<td>Beratung</td>
    		<td>150.00</td>
    		<td><input class="input" type="text" name="loesung5" id="loesung3_ber" value="1800.00" readonly /></td>
    	  </tr>	  	
    	</table>
    	<table width="100%" border="0" style="border-bottom: 1px solid #000; border-top: 1px solid #000">
    	  <tr>
    	    <td><strong>Zwischentotal 1</strong></td>
    	    <td>&nbsp;</td>
    	    <td><strong><input class="input" value="" name="zwischentotal" id="zwischentotal3_1" readonly /></strong></td>
    	  </tr>
    	</table>
    	<table width="100%" border="0">
    	  <tr>
    	    <td>Telefonanschl&uuml;sse</td>
    	    <td>25.00</td>
    	    <td><input class="input" name="telfonanschluesse" id="loesung3_telan" value="" readonly /></td>
    	  </tr>	  
    	  <tr>
    	    <td>Telefonapparate</td>
    	    <td>10.90</td>
    	    <td><input class="input" name="telfonapparate" id="loesung3_telap" value="" readonly /></td>
    	  </tr>	  
    	  <tr>
    	    <td>Parkpl&auml;tze</td>
    	    <td>110.00</td>
    	    <td><input class="input" name="parkplatz" id="loesung3_park" value="" readonly /></td>
    	  </tr>
    	</table>
    	<table width="100%" border="0" style="border-bottom: 1px solid #000; border-top: 1px solid #000">
    	  <tr>
    	    <td><strong>Zwischentotal 2</strong></td>
    	    <td>&nbsp;</td>
    	    <td><strong><input class="input" value="0.00" name="zwischentotal" id="zwischentotal3_2" readonly /></strong></td>
    	  </tr>
    	</table>
    	<table width="100%" border="0" style="border-bottom: 1px solid #000">
    	  <tr>
    	    <td><strong>Total (CHF)</strong></td>
    	    <td>&nbsp;</td>
    	    <td><strong><input class="input" value="" name="total" id="total3" readonly /></strong></td>
    	  </tr>
    	</table>	<br />
 <!-- 4 -->	 
    
    	<table width="100%" border="0"  style="border-bottom: 1px solid #000">  
    	  <tr>
    		<td><strong>4. Jahr</strong></td>
    	  </tr>
    	  <tr>
    		<td><strong>Position</strong></td>
    		<td><strong>Preis/Einheit</strong></td>
    		<td><strong>Preis Total</strong>
    		</td>
    	  </tr>
    	</table>
    	<table>  
    	  <tr>
    		<td>Büro 4. Jahr</td>
    		<td>190.00</td>
    		<td><input class="input" type="text" name="loesung" id="loesung4_buero" value="" readonly /></td>
    	  </tr>
    	  <tr>
    		<td>Nebenkosten</td>
    		<td>35.00</td>
    		<td><input class="input" type="text" name="loesung2" id="loesung4_neben" value="" readonly /></td>
    	  </tr>
    	  <tr>
    		<td>Infrastruktur und Netzwerk</td>
    		<td>150.00</td>
    		<td><input class="input" type="text" name="loesung3" id="loesung4_infra" value="1800.00" readonly /></td>
    	  </tr>
    	  <tr>
    		<td>Sekretariat</td>
    		<td>200.00</td>
    		<td><input class="input" type="text" name="loesung4" id="loesung4_sek" value="2400.00" readonly /></td>
    	  </tr>
    	  <tr>
    		<td>Beratung</td>
    		<td>150.00</td>
    		<td><input class="input" type="text" name="loesung5" id="loesung4_ber" value="1800.00" readonly /></td>
    	  </tr>	  	
    	</table>
    	<table width="100%" border="0" style="border-bottom: 1px solid #000; border-top: 1px solid #000">
    	  <tr>
    	    <td><strong>Zwischentotal 1</strong></td>
    	    <td>&nbsp;</td>
    	    <td><strong><input class="input" value="" name="zwischentotal" id="zwischentotal4_1" readonly /></strong></td>
    	  </tr>
    	</table>
    	<table width="100%" border="0">
    	  <tr>
    	    <td>Telefonanschl&uuml;sse</td>
    	    <td>25.00</td>
    	    <td><input class="input" name="telfonanschluesse" id="loesung4_telan" value="" readonly /></td>
    	  </tr>	  
    	  <tr>
    	    <td>Telefonapparate</td>
    	    <td>10.90</td>
    	    <td><input class="input" name="telfonapparate" id="loesung4_telap" value="" readonly /></td>
    	  </tr>	  
    	  <tr>
    	    <td>Parkpl&auml;tze</td>
    	    <td>110.00</td>
    	    <td><input class="input" name="parkplatz" id="loesung4_park" value="" readonly /></td>
    	  </tr>
    	</table>
    	<table width="100%" border="0" style="border-bottom: 1px solid #000; border-top: 1px solid #000">
    	  <tr>
    	    <td><strong>Zwischentotal 2</strong></td>
    	    <td>&nbsp;</td>
    	    <td><strong><input class="input" value="" name="zwischentotal" id="zwischentotal4_2" readonly /></strong></td>
    	  </tr>
    	</table>
    	<table width="100%" border="0" style="border-bottom: 1px solid #000">
    	  <tr>
    	    <td><strong>Total (CHF)</strong></td>
    	    <td>&nbsp;</td>
    	    <td><strong><input class="input" value="" name="total" id="total4" readonly /></strong></td>
    	  </tr>
    	</table>	<br />
    </form>
</div>
</body /><!-- <div style="float: left; width: [[MARKET_CATEGORY_ROW_WIDTH]]; border: 0px solid #ff0000;">[[MARKET_CATEGORY_ROW2]]</div>-->
</html>