Last active
January 25, 2018 03:43
-
-
Save groupewibi/b05057e94aa9cc68853d327b673c80c7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* in ...application/modules/quotes/views/modal_create_quote.php : replace --------*/ | |
<select name="client_id" id="create_quote_client_id" class="client-id-select form-control" | |
autofocus="autofocus"> | |
<?php if (!empty($client)) : ?> | |
<option value="<?php echo $client->client_id; ?>"><?php _htmlsc(format_client($client)); ?></option> | |
<?php endif; ?> | |
</select> | |
/* ----- BY --------*/ | |
<select name="client_id" id="create_quote_client_id" class="form-control" autofocus="autofocus"> | |
<?php | |
foreach ($clients as $client) { | |
echo "<option value=\"" . $client->client_id . "\" "; | |
echo ">" . htmlsc(format_client($client)) . "</option>"; | |
} | |
?> | |
</select> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment