Avatar billede zidane5 Nybegynder
07. februar 2012 - 18:21

"regnemaskine" inkluderet i følgende fil?

Hej. Er det mulig at få en "regnemaskine" inkluderet i nedenstående fil? Helt konkret, så skal de 2 markerede tekstfelter(odds og indskud) i nedenstående fil ganges med hinanden, så resultater kommer til at stå i det sidste markerede felt(gevinst).

Er dette muligt?


<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2011 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: postnewthread.php
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }



$kampe = 20; //<--- ANTALLET AF MAX KAMPE




if (isset($_POST['postnewthread'])) {

function clean_string($message){
  return trim(stripinput(censorwords($message)));
}
function odds_to_string($spilstop, $spilstop1, $hjemmehold, $udehold, $tip, $hej, $ba, $lol, $lols){
  return clean_string($_POST[$spilstop]).':'.clean_string($_POST[$spilstop1]).' : '.
clean_string($_POST[$hjemmehold]).' - '.clean_string($_POST[$udehold]).' <font color="red"><b>'.
clean_string($_POST[$tip]).' '.clean_string($_POST[$hej]).' '.clean_string($_POST[$ba]).' '.clean_string($_POST[$lol]).' '.clean_string($_POST[$lols]).'</b></font> '.clean_string($_POST[$ds]);
}

function verify_odds($spilstop, $spilstop1, $hjemmehold, $udehold, $tip, $hej, $ba, $lol, $lols){
  if(empty($_POST[$hjemmehold])||$_POST[$hjemmehold]=='Hjemmehold'){
    return false;
  }
 
  if(empty($_POST[$udehold])){
    return false;
  }
 
  return true;
}

$message.= "";
$sep = "";
$j=0;
for($i=0;$i < 2 * $kampe; $i+=2){
  if(!verify_odds('Spilstop'.$i, 'Spilstop'.($i + 1), 'Hjemmehold'.$i, 'Udehold'.$i, 'tip'.$i, 'hej'.$i, 'ba'.$i, 'lol'.$i, 'lols'.$i)){
    continue;
  }
  $message.= $sep.odds_to_string('Spilstop'.$i, 'Spilstop'.($i + 1), 'Hjemmehold'.$i, 'Udehold'.$i, 'tip'.$i, 'hej'.$i, 'ba'.$i, 'lol'.$i, 'lols'.$i);
  $sep = '<br> ';
$j++;
}

$message .= '<br><br><font size="1"><b>'.clean_string($_POST['odds1']).'</b> '.clean_string($_POST['odds']).' <br> <b>'.clean_string($_POST['Spiltype5']).'</b> '.clean_string($_POST['Spiltype']).' '.clean_string($_POST['Spiltype1']).' <br> <b>'.clean_string($_POST['indskud1']).'</b> '.clean_string($_POST['indskud']).' <br> <b>'.clean_string($_POST['gevinst1']).'</b> '.clean_string($_POST['gevinst']).'</font> <br><br> <b>'.clean_string($_POST['analyse']).'</b> <br><br> '.clean_string($_POST['message']);

$subject = trim(stripinput(censorwords($_POST['dagens']))).' '.trim(stripinput(censorwords($_POST['antal']))).' '.$j.' l '.trim(stripinput(censorwords($_POST['odds2']))).' '.trim(stripinput(censorwords($_POST['odds']))).' l '.trim(stripinput(censorwords($_POST['gevinst2']))).' '.trim(stripinput(censorwords($_POST['gevinst'])));


    $flood = false; $error = 0;
    $sticky_thread = isset($_POST['sticky_thread']) && (iMOD || iSUPERADMIN) ? 1 : 0;
    $lock_thread = isset($_POST['lock_thread']) && (iMOD || iSUPERADMIN) ? 1 : 0;
    $sig = isset($_POST['show_sig']) ? 1 : 0;
    $smileys = isset($_POST['disable_smileys']) || preg_match("#(\[code\](.*?)\[/code\]|\[geshi=(.*?)\](.*?)\[/geshi\]|\[php\](.*?)\[/php\])#si", $message) ? 0 : 1;
    $thread_poll = 0;

    if ($fdata['forum_poll'] && checkgroup($fdata['forum_poll'])) {
        if (isset($_POST['poll_options']) && is_array($_POST['poll_options'])) {
            foreach ($_POST['poll_options'] as $poll_option) {
                if (trim($poll_option)) { $poll_opts[] = trim(stripinput(censorwords($poll_option))); }
                unset($poll_option);
            }
        }
        $thread_poll = (trim($_POST['poll_title']) && (isset($poll_opts) && is_array($poll_opts)) ? 1 : 0);
    }

    if (iMEMBER) {
        if ($subject != "" && $message != "") {
            require_once INCLUDES."flood_include.php";
            if (!flood_control("post_datestamp", DB_POSTS, "post_author='".$userdata['user_id']."'")) {
                $result = dbquery("INSERT INTO ".DB_THREADS." (forum_id, thread_subject, thread_author, thread_views, thread_lastpost, thread_lastpostid, thread_lastuser, thread_postcount, thread_poll, thread_sticky, thread_locked) VALUES('".$_GET['forum_id']."', '$subject', '".$userdata['user_id']."', '0', '".time()."', '0', '".$userdata['user_id']."', '1', '".$thread_poll."', '".$sticky_thread."', '".$lock_thread."')");
                $thread_id = mysql_insert_id();
                $result = dbquery("INSERT INTO ".DB_POSTS." (forum_id, thread_id, post_message, post_showsig, post_smileys, post_author, post_datestamp, post_ip, post_ip_type, post_edituser, post_edittime) VALUES ('".$_GET['forum_id']."', '".$thread_id."', '".$message."', '".$sig."', '".$smileys."', '".$userdata['user_id']."', '".time()."', '".USER_IP."', '".USER_IP_TYPE."', '0', '0')");
                $post_id = mysql_insert_id();
                $result = dbquery("UPDATE ".DB_FORUMS." SET forum_lastpost='".time()."', forum_postcount=forum_postcount+1, forum_threadcount=forum_threadcount+1, forum_lastuser='".$userdata['user_id']."' WHERE forum_id='".$_GET['forum_id']."'");
                $result = dbquery("UPDATE ".DB_THREADS." SET thread_lastpostid='".$post_id."' WHERE thread_id='".$thread_id."'");
                $result = dbquery("UPDATE ".DB_USERS." SET user_posts=user_posts+1 WHERE user_id='".$userdata['user_id']."'");
                if ($settings['thread_notify'] && isset($_POST['notify_me'])) { $result = dbquery("INSERT INTO ".DB_THREAD_NOTIFY." (thread_id, notify_datestamp, notify_user, notify_status) VALUES('".$thread_id."', '".time()."', '".$userdata['user_id']."', '1')"); }

                if (($fdata['forum_poll'] && checkgroup($fdata['forum_poll'])) && $thread_poll) {
                    $poll_title = trim(stripinput(censorwords($_POST['poll_title'])));
                    if ($poll_title && (isset($poll_opts) && is_array($poll_opts))) {
                        $result = dbquery("INSERT INTO ".DB_FORUM_POLLS." (thread_id, forum_poll_title, forum_poll_start, forum_poll_length, forum_poll_votes) VALUES('".$thread_id."', '".$poll_title."', '".time()."', '0', '0')");
                        $forum_poll_id = mysql_insert_id();
                        $i = 1;
                        foreach ($poll_opts as $poll_option) {
                            $result = dbquery("INSERT INTO ".DB_FORUM_POLL_OPTIONS." (thread_id, forum_poll_option_id, forum_poll_option_text, forum_poll_option_votes) VALUES('".$thread_id."', '".$i."', '".$poll_option."', '0')");
                            $i++;
                        }
                    }
                }

                if ($fdata['forum_attach'] && checkgroup($fdata['forum_attach'])) {
                        // $attach = $_FILES['attach'];
                    foreach($_FILES as $attach){
                        if ($attach['name'] != "" && !empty($attach['name']) && is_uploaded_file($attach['tmp_name'])) {
                            $attachname = stripfilename(substr($attach['name'], 0, strrpos($attach['name'], ".")));
                            $attachext = strtolower(strrchr($attach['name'],"."));
                            if (preg_match("/^[-0-9A-Z_\[\]]+$/i", $attachname) && $attach['size'] <= $settings['attachmax']) {
                                $attachtypes = explode(",", $settings['attachtypes']);
                                if (in_array($attachext, $attachtypes)) {
                                    $attachname .= $attachext;
                                    $attachname = attach_exists(strtolower($attachname));
                                    move_uploaded_file($attach['tmp_name'], FORUM."attachments/".$attachname);
                                    chmod(FORUM."attachments/".$attachname,0644);
                                    if (in_array($attachext, $imagetypes) && (!@getimagesize(FORUM."attachments/".$attachname) || !@verify_image(FORUM."attachments/".$attachname))) {
                                        unlink(FORUM."attachments/".$attachname);
                                        $error = 1;
                                    }
                                    if (!$error) { $result = dbquery("INSERT INTO ".DB_FORUM_ATTACHMENTS." (thread_id, post_id, attach_name, attach_ext, attach_size) VALUES ('".$thread_id."', '".$post_id."', '".$attachname."', '".$attachext."', '".$attach['size']."')"); }
                                } else {
                                    @unlink($attach['tmp_name']);
                                    $error = 1;
                                }
                            } else {
                                @unlink($attach['tmp_name']);
                                $error = 2;
                            }
                        }
                    }
                }
            } else {
                    redirect("viewforum1.php?forum_id=".$_GET['forum_id']);
            }
        } else {
            $error = 3;
        }
    } else {
        $error = 4;
    }
    if ($error > 2) {
        redirect("postify.php?post=new&error=$error&forum_id=".$_GET['forum_id']);
    } else {
        redirect("postify.php?post=new&error=$error&forum_id=".$_GET['forum_id']."&thread_id=".$thread_id."");
    }
} else {
    if (!isset($_POST['previewpost']) && !isset($_POST['add_poll_option'])) {
        $subject = "";
        $message .= "";
        $sticky_thread_check = "";
        $lock_thread_check = "";
        $disable_smileys_check = "";
        $sig_checked = " checked='checked'";
        if ($settings['thread_notify']) { $notify_checked = ""; }
        $poll_title = "";
        $poll_opts = array();
    }
    add_to_title($locale['global_201'].$locale['401']);
    echo "<!--pre_postnewthread-->";
    opentable($locale['401']);
    if (!isset($_POST['previewpost'])) { echo "<div class='tbl2 forum_breadcrumbs' style='margin-bottom:5px'><b>".$settings['sitename']."</a> &raquo; ".$caption."</b></div>\n"; }
    echo "<a href='java script:history.back()'><img src='".THEMES."itheme2/images/left.png' alt='Tilbage'></a>\n";

    ?>
    <form id='inputform' method='post' action='<?php echo FUSION_SELF;?>?action=newthread&amp;forum_id=<?php echo $_GET['forum_id'];?>' enctype='multipart/form-data'>
      <script type="text/javascript">
        function show(){
          var tables = document.getElementById('kampe').getElementsByTagName('table');
          for(var i = 1; i < tables.length; i++){
            if(tables[i].style.display == 'none'){
              tables[i].style.display="";
              break;
            }
          }
        }
       
        function hide(){
          var tables = document.getElementById('kampe').getElementsByTagName('table');
          for(var i = tables.length - 1; i > 0; i--){
            if(tables[i].style.display == ''){
              tables[i].style.display="none";
              var inputs = tables[i].getElementsByTagName('input');
              for(var j = 0; j < inputs.length;j++){
                inputs[j].value = "";
              }
              break;
            }
          }
        }

      </script>
      <div id="kampe">
      <?php
      for($i = 0; $i<$kampe*2; $i+=2){?>
        <table cellpadding='0' cellspacing='1' width='100%' class='tbl-border' <?php echo ($i>0)?"style='display:none'":'';?>>
          <tr>
            <td width='65' class='tbl2'><?php echo $locale['461aa'];?></td>
            <td class='tbl1'><select name='Spilstop<?php echo $i;?>'>
              <?php
              for($j = 1; $j < 25; $j++){
                $v =str_pad($j, 2, '0',STR_PAD_LEFT);
                echo "<option value='".$v."'>".$v."</option>";
              }
            echo "</select>:<select name='Spilstop".($i + 1)."'>";
            for($j = 0; $j < 51; $j+=5){
              $v =str_pad($j, 2, '0',STR_PAD_LEFT);
              echo "<option value='".$v."'>".$v."</option>";
            }
            ?>
            </select></td>
            <td class='tbl1'>
              <input type="text" name="Hjemmehold<?php echo $i;?>" value="Hjemmehold" onblur="if(value=='') value = 'Hjemmehold'"    onfocus="if(value=='Hjemmehold') value = ''" class="textbox" maxlength="255" style="width: 135px" />
            </td>
            <td align=center'>-</td>
            <td class='tbl1'>
              <input type="text" name="Udehold<?php echo $i;?>" value="Udehold" onblur="if(value=='') value = 'Udehold'"    onfocus="if(value=='Udehold') value = ''" class="textbox" maxlength="255" style="width: 135px" />
            </td>

            <td class='tbl1'>

<script type="text/javascript">
function tipChange(sel, i){
  var val = sel.value;
  var sp1 = document.getElementById('tip1'+i);
var sp2 = document.getElementById('tip2'+i);
var sp3 = document.getElementById('lol1'+i);
var sp4 = document.getElementById('lol2'+i);
  sp1.style.display = (val == "under")?"":"none";
  sp2.style.display = (val == "over")?"":"none";
  sp3.style.display = (val == "")?"":"none";
  sp4.style.display = (val == "")?"":"none";

}
</script>
<select name="tip<?php echo $i;?>" onchange="tipChange(this, <?php echo $i;?>);">
<option value=''>Tip:</option>
<option value="1">1</option>
<option value="X">X</option>
<option value="2">2</option>
<option value="1X">1X</option>
<option value="X2">X2</option>
<option value="12">12</option>
<option value="DNB 1">DNB 1</option>
<option value="DNB 2">DNB 2</option>
<option value="Halvleg 1">Halvleg 1</option>
<option value="Halvleg X">Halvleg X</option>
<option value="Halvleg 2">Halvleg 2</option>
<option value="under">Under(mål)</option>
<option value="over">Over(mål)</option>
<option value="">handicap</option>
</select>
<select id="tip1<?php echo $i;?>" name="hej<?php echo $i;?>" style="display:none">
<option value=''>Vælg:</option>
<option value='0.5 mål'>0.5 mål</option>
<option value='1.5 mål'>1.5 mål</option>
<option value='2.5 mål'>2.5 mål</option>
<option value='3.5 mål'>3.5 mål</option>
<option value='4.5 mål'>4.5 mål</option>
<option value='5.5 mål'>5.5 mål</option>
<option value='6.5 mål'>6.5 mål</option>
<option value='7.5 mål'>7.5 mål</option>
<option value='8.5 mål'>8.5 mål</option>
</select> 
<select id="tip2<?php echo $i;?>" name="ba<?php echo $i;?>" style="display:none">
<option value=''>Vælg:</option>
<option value='0.5 mål'>0.5 mål</option>
<option value='1.5 mål'>1.5 mål</option>
<option value='2.5 mål'>2.5 mål</option>
<option value='3.5 mål'>3.5 mål</option>
<option value='4.5 mål'>4.5 mål</option>
<option value='5.5 mål'>5.5 mål</option>
<option value='6.5 mål'>6.5 mål</option>
<option value='7.5 mål'>7.5 mål</option>
<option value='8.5 mål'>8.5 mål</option>
</select>
<select id="lol1<?php echo $i;?>" name='lol<?php echo $i;?>' style="display:none">
<option value=''>Vælg:</option>
<option value='(0-1)'>(0-1)</option>
<option value='(0-2)'>(0-2)</option>
<option value='(0-3)'>(0-3)</option>
<option value='(0-4)'>(0-4)</option>
<option value='(0-5)'>(0-5)</option>
<option value='(1-0)'>(1-0)</option>
<option value='(2-0)'>(2-0)</option>
<option value='(3-0)'>(3-0)</option>
<option value='(4-0)'>(4-0)</option>
<option value='(5-0)'>(5-0)</option>
</select> 
<select id="lol2<?php echo $i;?>" name="lols<?php echo $i;?>" style="display:none">
<option value=''>Vælg:</option>
<option value='1'>1</option>
<option value='X'>X</option>
<option value='2'>2</option>
</select> 

</td>           
          </tr>
        </table>
      <?php } ?>
      </div>
        <table>
          <tr>
            <td>
            <button type="button" onclick="show();">&nbsp;Tilføj kamp&nbsp;</button><button type="button" onclick="hide();">&nbsp;Slet kamp&nbsp;</button>
            </td>
          </tr>
        </table>
      <table cellpadding='0' cellspacing='1' width='100%' class='tbl-border'>
                  <tr>
          <td valign='top' width='65' class='tbl2'><?php echo $locale['461aab'];?><?php echo $locale['461aabb'];?></td>
            <td class='tbl1'>
<select name="dagens" >
<option value=''>Dagens:</option>
<option value="Dagens sikre:">Dagens sikre</option>
<option value="Dagens kupon:">Dagens kupon</option>
<option value="Dagens umulige:">Dagens umulige</option>
</select>

            </td>
            <td class='tbl1'>
<script type="text/javascript">
function spiltypeChange(sel){
  var val = sel.value;
  var sp1 = document.getElementById('Spiltype1');
  sp1.style.display = (val == "Systemspil")?"":"none";
}
</script>
<select name='Spiltype' onchange="spiltypeChange(this);">
<option value=''>Spiltype:</option>
<option value='Lige på'>Lige på</option>
<option value='Systemspil'>Systemspil</option>
</select>
<select id="Spiltype1" name='Spiltype1' style="display:none">
<option value=''>Vælg:</option>
<option value='2/3'>2/3</option>
<option value='2/4'>2/4</option>
<option value='2/5'>2/5</option>
<option value='3/4'>3/4</option>
<option value='3/5'>3/5</option>
<option value='3/6'>3/6</option>
<option value='4/5'>4/5</option>
<option value='4/6'>4/6</option>
<option value='5/6'>5/6</option>
<option value='5/7'>5/7</option>
</select>
</td>
            <td class='tbl1'>
              <input type="text" name="odds" value="Odds" onblur="if(value=='') value = 'Odds'"    onfocus="if(value=='Odds') value = ''" class="textbox" maxlength="10" style="width: 50px" />
            </td>
            <td class='tbl1'>
              <input type="text" name="indskud" value="Indskud" onblur="if(value=='') value = 'Indskud'"    onfocus="if(value=='Indskud') value = ''" class="textbox" maxlength="10" style="width: 50px" />
            </td>
            <td class='tbl1'>
              <input type="text" name="gevinst" value="Gevinst" onblur="if(value=='') value = 'Gevinst'"    onfocus="if(value=='Gevinst') value = ''" class="textbox" maxlength="10" style="width: 50px" />
            </td>

            <td class='tbl1'>
              <input type="hidden" READONLY name="kupon" value="Hele kuponen:" onblur="if(value=='') value = 'Hele kuponen:'"    onfocus="if(value=='Hele kuponen:') value = ''" class="textbox" maxlength="2" style="width: 50px" />
              <input type="hidden" READONLY name="odds1" value="Odds:" onblur="if(value=='') value = 'Gevinst'"    onfocus="if(value=='Gevinst') value = ''" class="textbox" maxlength="2" style="width: 50px" />
              <input type="hidden" READONLY name="indskud1" value="Indskud:" onblur="if(value=='') value = 'Gevinst'"    onfocus="if(value=='Gevinst') value = ''" class="textbox" maxlength="2" style="width: 50px" />
              <input type="hidden" READONLY name="gevinst1" value="Mulig gevinst:" onblur="if(value=='') value = 'Samlet'"    onfocus="if(value=='Samlet') value = ''" class="textbox" maxlength="255" style="width: 50px" />
              <input type="hidden" READONLY name="analyse" value="Analyse:" onblur="if(value=='') value = 'Analyse:"    onfocus="if(value=='Samlet') value = ''" class="textbox" maxlength="255" style="width: 50px" />
              <input type="hidden" READONLY name="Spiltype5" value="Spiltype:" onblur="if(value=='') value = 'Spiltype:"    onfocus="if(value=='Spiltype:') value = ''" class="textbox" maxlength="255" style="width: 50px" />
              <input type="hidden" READONLY name="gevinst2" value="Mulig gevinst:" onblur="if(value=='') value = '"    onfocus="if(value=='') value = ''" class="textbox" maxlength="255" style="width: 50px" />
              <input type="hidden" READONLY name="odds2" value="Odds:" onblur="if(value=='') value = '"    onfocus="if(value=='') value = ''" class="textbox" maxlength="255" style="width: 50px" />
              <input type="hidden" READONLY name="antal" value="Kampe:" onblur="if(value=='') value = '"    onfocus="if(value=='') value = ''" class="textbox" maxlength="255" style="width: 50px" />

</td>
     
          </tr>
</table>
      <table cellpadding='0' cellspacing='1' width='100%' class='tbl-border'>
         
        <tr>
          <td valign='top' width='65' class='tbl2'><?php echo $locale['461a'];?></td>
          <td class='tbl1'><textarea name='message' cols='60' rows='15' class='textbox' style='width:98%'><?php echo $message;?></textarea></td>
        </tr>
        <tr>
          <td width='65' class='tbl2'>&nbsp;</td>
          <td class='tbl1'><?php echo display_bbcodes("99%", "message");?></td>
        </tr>
        <tr>
          <td valign='top' width='65' class='tbl2'><?php echo $locale['463'];?></td>
          <td class='tbl1'>
          <?php
            if (iMOD || iSUPERADMIN) {
              echo "<label><input type='checkbox' name='sticky_thread' value='1'".$sticky_thread_check." /> ".$locale['480']."</label><br />\n";
              echo "<label><input type='checkbox' name='lock_thread' value='1'".$lock_thread_check." /> ".$locale['481']."</label><br />\n";
            }
            echo "<label><input type='checkbox' name='disable_smileys' value='1'".$disable_smileys_check." /> ".$locale['482']."</label>";
            if (array_key_exists("user_sig", $userdata) && $userdata['user_sig']) {
              echo "<br />\n<label><input type='checkbox' name='show_sig' value='1'".$sig_checked." /> ".$locale['483']."</label>";
            }
            if ($settings['thread_notify']) {
              echo "<br />\n";
            }
            echo "</td>\n</tr>\n";
            if ($fdata['forum_attach'] && checkgroup($fdata['forum_attach'])) {
              add_to_head("<script type='text/javascript' src='".INCLUDES."multi_attachment.js'></script>\n");
              ?>
              <tr>
                <td width='65' class='tbl2'><?php echo $locale['464'];?></td>
                <td class='tbl1'>
                  <input id='my_file_element' type='file' name='file_1' class='textbox' style='width:200px;' /><br />
                  <span class='small2'>
                    <?php echo sprintf($locale['466'], parsebytesize($settings['attachmax']), str_replace(',', ' ', $settings['attachtypes']), $settings['attachmax_count']);?>
                  </span><br />
                  <div id='files_list'></div>
                  <script>
                    /* <![CDATA[ */
                    <!-- Create an instance of the multiSelector class, pass it the output target and the max number of files -->
                    var multi_selector = new MultiSelector( document.getElementById("files_list"), <?php echo $settings['attachmax_count'];?>);
                    <!-- Pass in the file element -->
                    multi_selector.addElement( document.getElementById( "my_file_element" ) );
                    /* ]]>*/
                  </script>
                </td>
              </tr>
            <?php }
            if ($fdata['forum_poll'] && checkgroup($fdata['forum_poll'])) {?>
              <tr>
                <td align='center' colspan='2' class='tbl2'><?php echo $locale['467a'];?></td>
              </tr>
              <tr>
                <td width='65' class='tbl2'><?php echo $locale['469'];?></td>
                <td class='tbl1'><input type='text' READONLY name='poll_title' value='Har du brugt dette forslag?' class='textbox' maxlength='255' style='width:250px' /></td>
              </tr>
              <?php
              $i = 1;
              if (isset($poll_opts) && is_array($poll_opts) && count($poll_opts)) {
                foreach ($poll_opts as $poll_option) {
                  echo "<tr>\n<td width='65' class='tbl2'>".$locale['470']." ".$i."</td>\n";
                  echo "<td class='tbl1'><input type='text' name='poll_options[$i]' value='".$poll_option."' class='textbox' maxlength='255' style='width:250px'>";
                  echo "</td>\n</tr>\n";
                  $i++;
                }
              } else {
                echo "<tr>\n<td width='65' class='tbl2'>".$locale['470']." 1</td>\n";
                echo "<td class='tbl1'><input type='text' READONLY  name='poll_options[1]' value='Ja' class='textbox' maxlength='255' style='width:250px' /></td>\n</tr>\n";
                echo "<tr>\n<td width='65' class='tbl2'>".$locale['470']." 2</td>\n";
                echo "<td class='tbl1'><input type='text' READONLY  name='poll_options[2]' value='Nej' class='textbox' maxlength='255' style='width:250px' /> ";
                echo "</td>\n</tr>\n";
              }
            }
            echo "<tr>\n<td align='center' colspan='2' class='tbl1'>\n";
            echo "\n";
            echo "<input type='submit' name='postnewthread' value='".$locale['401']."' class='button' />\n";
            echo "</td>\n</tr>\n</table>\n</form>\n";
            closetable();
            echo "<!--sub_postnewthread-->";
}
?>
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester