Advertisement
sueckreimir

ucenicMVC/switchewi

Oct 9th, 2019
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.56 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <!--
  3. To change this license header, choose License Headers in Project Properties.
  4. To change this template file, choose Tools | Templates
  5. and open the template in the editor.
  6. -->
  7. <html>
  8.     <head>
  9.         <meta charset="UTF-8">
  10.         <title></title>
  11.     </head>
  12.     <body>
  13.         <?php
  14.        
  15.         switch($podaci['broj'])
  16.         {
  17.             case 1:
  18.                 $podaci['x']=0;
  19.                 break;
  20.             case 2:
  21.                 $podaci['x']=15;
  22.                 break;
  23.             case 3:
  24.                 $podaci['x']=30;
  25.                 break;
  26.             case 4:
  27.                 $podaci['x']=45;
  28.                 break;
  29.             case 5:
  30.                 $podaci['x']=60;
  31.                 break;
  32.             case 6:
  33.                 $podaci['x']=75;
  34.                 break;
  35.             case 7:
  36.                 $podaci['x']=90;
  37.                 break;
  38.             case 8:
  39.                 $podaci['x']=105;
  40.                 break;
  41.             case 9:
  42.                 $podaci['x']=120;
  43.                 break;
  44.             case 10:
  45.                 $podaci['x']=135;
  46.                 break;
  47.             case 11:
  48.                 $podaci['x']=150;
  49.                 break;
  50.             case 12:
  51.                 $podaci['x']=165;
  52.                 break;
  53.             case 13:
  54.                 $podaci['x']=180;
  55.                 break;
  56.             case 14:
  57.                 $podaci['x']=195;
  58.                 break;
  59.             case 15:
  60.                 $podaci['x']=210;
  61.                 break;
  62.             case 16:
  63.                 $podaci['x']=225;
  64.                 break;
  65.             case 17:
  66.                 $podaci['x']=240;
  67.                 break;
  68.             case 18:
  69.                 $podaci['x']=255;
  70.                 break;
  71.             case 19:
  72.                 $podaci['x']=270;
  73.                 break;
  74.             case 20:
  75.                 $podaci['x']=285;
  76.                 break;
  77.             case 21:
  78.                 $podaci['x']=300;
  79.                 break;
  80.             case 22:
  81.                 $podaci['x']=315;
  82.                 break;
  83.             case 23:
  84.                 $podaci['x']=330;
  85.                 break;
  86.             case 24:
  87.                 $podaci['x']=345;
  88.                 break;
  89.             case 25:
  90.                 $podaci['x']=360;
  91.                 break;
  92.             case 26:
  93.                 $podaci['x']=375;
  94.                 break;
  95.             case 27:
  96.                 $podaci['x']=390;
  97.                 break;
  98.            
  99.            
  100.         }
  101.        
  102.         ?>
  103.     </body>
  104. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement