Jump to content

Vote4coins To Vote4Items Ingame


Recommended Posts

hello i got this php vote4coins / is there anyway to make it vote for lets say 6/7 adders switchers ? (71051 , 71052)

thats the page of vote

 

 

 

<div class="container">
	<div class="page-hd" style="background-image: url(<?php print $site_url; ?>images/ranking.png)">
		<div class="bd-c">
			<h2 class="pre-social"><?php print $lang['vote']; ?></h2>
		</div>
	</div>
	<?php if(isset($voted_now) && isset($already_voted) && !$voted_now) { ?>
	<div class="alert alert-danger alert-dismissible fade in" role="alert">
		<button type="button" class="close" data-dismiss="alert" aria-label="Close">
			<span aria-hidden="true">&times;</span>
		</button><?php print $lang['vote-again'].' <strong>'.$already_voted.'</strong>'; ?>
	</div>

	<?php } if(count($vote4coins)) { ?>
	<table class="table table-hover">
		<thead class="thead-inverse">
			<tr>
				<th style="width: 15%">#</th>
				<th style="width: 30%">Site</th>
				<th style="width: 20%"><?php print $lang['value']; ?></th>
				<th style="width: 20%"><?php print $lang['time']; ?></th>
				<th><?php print $lang['vote']; ?></th>
			</tr>
		</thead>
		<tbody>
		<?php $i=1; foreach($vote4coins as $key => $vote) { ?>
			<tr>
				<th scope="row"><?php print $i++; ?></th>
				<td><?php print $vote['name']; ?></td>
				<td><?php print $vote['value']; if($vote['type']==1) print 'MD'; else print 'JD'; ?></td>
				<td><?php print $vote['time'].' '.$lang['hours']; ?></td>
				<td><a href="<?php print $site_url.'user/vote4coins/'.$key; ?>" class="btn btn-primary btn-sm"><?php print $lang['vote']; ?></a></td>
			</tr>
		<?php } ?>
		</tbody>
	</table>
	<?php } else { ?>
	<div class="alert alert-info" role="alert">
		<strong>Info!</strong> <?php print $lang['no-download-links']; ?>
	</div>
	<?php } ?>
</div>

and this is the admin panel one

 

<div class="container">
    <form action="" method="post">
		<div class="form-group row">
			<div class="col-sm-4">
				<input type="text" class="form-control" name="site_name" placeholder="Site">
			</div>
			<div class="col-sm-8">
				<input type="url" class="form-control" name="site_link" placeholder="Link" value="http://">
			</div>
		</div>
		<div class="form-group row">
			<div class="col-sm-4">
				<input type="number" class="form-control" name="coins" placeholder="0" value="0">
			</div>
			<div class="col-sm-4">
				<select class="form-control" name="type">
					<option value="1">MD</option>
					<option value="2">JD</option>
				</select>
			</div>
			<div class="col-sm-4">				
				<div class="input-group">
					<input class="form-control" name="time" min="1" required="" type="number">
					<span class="input-group-addon"><?php print $lang['hours']; ?></span>
				</div>
				
			</div>
		</div>

        <div class="form-group row">
            <div class="col-sm-10">
                <button type="submit" name="submit" class="btn btn-primary"><?php print $lang['add']; ?></button>
            </div>
        </div>
    </form>
	
	<?php if(count($jsondataVote4Coins)) { ?>
	<table class="table table-hover">
		<thead class="thead-inverse">
			<tr>
				<th>#</th>
				<th>Site</th>
				<th><?php print $lang['coin']; ?></th>
				<th><?php print $lang['value']; ?></th>
				<th><?php print $lang['time']; ?></th>
				<th><?php print $lang['delete']; ?></th>
			</tr>
		</thead>
		<tbody>
		<?php $i=1; foreach($jsondataVote4Coins as $key => $vote4coins) { ?>
			<tr>
				<th scope="row"><?php print $i++; ?></th>
				<td><?php print $vote4coins['name']; ?></td>
				<td><?php if($vote4coins['type']==1) print 'MD'; else print 'JD'; ?></td>
				<td><?php print $vote4coins['value']; ?></td>
				<td><?php print $vote4coins['time'].' '.$lang['hours']; ?></td>
				<td><a href="<?php print $site_url.'admin/vote4coins/'.$key; ?>" class="btn btn-primary btn-sm"><?php print $lang['delete']; ?></a></td>
			</tr>
		<?php } ?>
		</tbody>
	</table>
	<?php } ?>
</div>

ty for the help ! 

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.