コード例 #1
0
ファイル: layoutView.php プロジェクト: ao222qg/project_php
 public function render()
 {
     echo '<!DOCTYPE html>
   <html>
     <head>
       <meta charset="utf-8">
       <title>Login Example</title>
     </head>
     <body>
       <h1>Texas Holdem</h1>
       
       
       <div class="container">
           ' . actionButton() . '
       </div>
      </body>
   </html>
 ';
 }
コード例 #2
0
<? function actionButton($id, $name) { ?>
  <button type="button" class="btn btn-primary" id="<?php 
echo $id;
?>
">
    <?php 
echo $name;
?>
  </button>
<? } ?>

<div class="container-fluid">
  <div class="btn-group pull-right" role="group">
    <?
    $plusIcon = '<span class="glyphicon glyphicon-plus"></span>';
    actionButton("add-btn", "$plusIcon Add Task")
    ?>
  </div>
</div>
コード例 #3
0
ファイル: character.php プロジェクト: renlok/PhaosRPG
            }
            if ($character->equipped($item_type, $item_id)) {
                print "<input type='button' onClick=\"parent.location='character.php?item_id={$item_id}&item_type={$item_type}&id={$id}&equip_id=N'\" value='{$lang_char['uneq']}'>";
            }
            print "</td>";
        }
        if ($item_type == "weapon" or $item_type == "armor" or $item_type == "boots" or $item_type == "potion" or $item_type == "gloves" or $item_type == "helm" or $item_type == "shield" or $item_type == "spell_items") {
            print "<td align=center valign=top>";
            if ($shopForItemtype[$item_type]) {
                print "<input type='button' title=\"{$lang_char['sell_pr']} {$sell_price} gold\" onClick=\"parent.location='character.php?item_id={$item_id}&item_type={$item_type}&id={$id}&sell_id=Y'\" value='{$lang_char['sell']}'";
            } else {
                print "&nbsp;";
            }
            ?>
 </td><td align=center valign=top><?php 
            actionButton($lang_char['dropitem'], $_SERVER['PHP_SELF'], array('drop_id[]' => $item_id, 'drop_type[]' => $item_type, 'drop_number[]' => 1));
            print "</td></tr>";
        }
        print "<p>\n\t        \t  <td align=center colspan=7 valign=top>\n\t        \t  <form method=\"post\" action=\"character.php\">\n\t        \t  <input type=\"hidden\" name=\"market_item\" value=\"yes\">\n\t        \t  <input type=\"hidden\" name=\"char_inv_id\" value=\"{$id}\">\n\t        \t  Sell To:<input type=\"text\" name=\"sell_to\" value=\"{$sell_to_name}\" size=10>\n\t        \t  Price:<input type=\"text\" name=\"asking_price\" value=\"{$ask_price}\" size=10>\n\t        \t  <input type=\"submit\" value=\"{$lang_char['setsellprice']}\">\n\t        \t  </form>\n\t              </td>";
        ?>
</tr><?php 
        ?>
<tr><td colspan="8"><hr width=50%></td></tr><?php 
    }
    // end out put a row
}
// end loop
if (!$output) {
    print "<tr><td align=center colspan=4><b>" . $lang_char["noitem"] . ($wheretype ? " ({$_GET['act']})" : '') . "</b></td></tr>";
}
?>
コード例 #4
0
ファイル: town.php プロジェクト: renlok/PhaosRPG
        ?>
<td style="color:<?php 
        echo $info['skill_need'];
        ?>
;"><?php 
        echo $info['number'] . $info['description'];
        ?>
</td><?php 
        ?>
<td><?php 
        actionButton($lang_town['pickup'], $_SERVER['PHP_SELF'], array('pickup_id[]' => $item['id'], 'pickup_type[]' => $item['type'], 'pickup_number[]' => 1));
        ?>
</td><?php 
        ?>
<td><?php 
        actionButton($lang_town['pickup_all'], $_SERVER['PHP_SELF'], array('pickup_id[]' => $item['id'], 'pickup_type[]' => $item['type'], 'pickup_number[]' => $item['number']));
        ?>
</td><?php 
        ?>
</tr><?php 
    }
    ?>
</table></center></td></tr><?php 
}
?>

<tr>
	<td align="left">
		<br><br>
		<b><?php 
echo $lang_town["ot_on"];