<?php if($isfirst&&$group['allowsell']=="1") {?>
<div class="form-group input-group" id="form-group-radio">
<div class="input-group-prepend"><span class="input-group-text"><?php echo lang('pay');?></span></div>
<div class="custom-input form-control">
<?php echo $input['content_num_status'];?>
</div>
</div>
<div class="form-group input-group" id="content_num_input" style="">

<div class="input-group-prepend"><span class="input-group-text">收取费用</span></div>
<input type="tel"  name="content_num" id="content_number" placeholder="0" value="<?php echo $content_num;?>" maxlength="5" class="form-control" oninput="if(!/^[0-9]+$/.test(value)) value=value.replace(/\D/g,'');if(value>100)value=100;if(value<0)value=null">
<select name="content_type" id="content_type" style="display: inline-block;width: auto;" class="custom-select">
			<option value="<?php echo lang('credits1');?>"><?php echo lang('credits1');?></option>
			<option value="<?php echo lang('credits2');?>"><?php echo lang('credits2');?></option>
			<option value="<?php echo lang('credits3');?>"><?php echo lang('credits3');?>(单位：分)</option></select>
			<div class="input-group">
			<button type="button" class="btn btn-sm btn-success mt-2" id="insert_p" onclick="try{
	    tinymce.activeEditor.selection.setContent('[ttPay]<?php echo lang("please_input_buy_content");?>[/ttPay]',true);
	    //editor.setValue(editor.getValue()+'[ttPay]<?php echo lang("please_input_buy_content");?>[/ttPay]');
	} catch(err) {
	    document.getElementById('message').innerHTML+='[ttPay]<?php echo lang("please_input_buy_content");?>[/ttPay]';
	}"><?php echo lang('insert_pay');?></button>
	<span class="small ml-2 mt-3">一定要记得<span class="text-danger font-weight-bold">插入付费内容</span>和设置好<span class="text-danger font-weight-bold">收取费用</span>才能够生效哦！</span>
	<!--{hook post_message_credits_after.htm}-->
	</div>
</div>

<?php } ?>